kernfs (Linux)

From Infogalactic: the planetary knowledge core
Jump to: navigation, search

<templatestyles src="Module:Hatnote/styles.css"></templatestyles>

In the Linux kernel, kernfs is a set of functions that contains the functionality required for creating virtual 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 virtual file systems more easily and consistently.[1][2][3]

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.[1][4] One of the primary users of kernfs is the virtual file system used internally by cgroups, whose redesign continued into version 3.15 of the Linux kernel.[5]

See also

  • procfs – a special file system in Unix-like operating systems that presents information about processes and other system information
  • tmpfs – a common name for a temporary file storage facility on many Unix-like operating systems

References

  1. 1.0 1.1 Lua error in package.lua at line 80: module 'strict' not found.
  2. Lua error in package.lua at line 80: module 'strict' not found.
  3. Lua error in package.lua at line 80: module 'strict' not found.
  4. Lua error in package.lua at line 80: module 'strict' not found.
  5. Lua error in package.lua at line 80: module 'strict' not found.

External links

  • Source code, fs/kernfs within the Linux kernel source tree