kernfs (BSD)

For the creation of virtual file systems in the Linux kernel, see kernfs (Linux).

In the Berkeley Software Distribution (BSD) and its descendants, kernfs is a pseudo file system that provides access to information on the currently running kernel. The file system itself and its content are dynamically generated when the operating system is booted, and the kernfs is often mounted at the /kern directory.[1][2] As a result of its nature, kernfs does not consist of actual files on a storage device, allowing instead processes to retrieve system information by accessing virtual files.

kernfs first appeared in 4.4BSD,[1] and NetBSD 6.0 continues to use kernfs by default while mounting it at the canonical /kern mount point.[3]

See also

References

  1. 1.0 1.1 "kernfs(5)  kernel file system". gsp.com. December 14, 1996. Archived from the original on September 28, 2007. Retrieved May 6, 2014.
  2. "Rewrite kernfs and procfs". netbsd.org. September 8, 2014. Retrieved March 24, 2015.
  3. "mount_kernfs(8)  mount the /kern file system". netbsd.gw.com. September 8, 2003. Retrieved March 24, 2015.