Find the word definition

Wikipedia
Kernfs

kernfs may refer to:

  • kernfs (BSD), a pseudo file system in BSD-based operating systems
  • kernfs (Linux), a set of functions in the Linux kernel that aid in creation of pseudo file systems
Kernfs (Linux)

In the Linux kernel, kernfs is a set of functions that contain the functionality required for creating pseudo file systems used internally by various kernel subsystems. The creation of kernfs resulted from splitting off part of the internal logic used by sysfs, which provides a set of virtual files by exporting information about hardware devices and associated device drivers from the kernel's device model to user space, into an independent and reusable functionality so other kernel subsystems can implement their own pseudo file systems more easily and consistently.

The associated patchset, with Tejun Heo as its main author, was merged into the Linux kernel mainline in kernel version 3.14, which was released on March 30, 2014. One of the primary users of kernfs is the pseudo file system used internally by cgroups, whose redesign continued into version 3.15 of the Linux kernel.

Kernfs (BSD)

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 directory. 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, and NetBSD 6.0 continues to use kernfs by default while mounting it at the canonical mount point.