For faster navigation, this Iframe is preloading the Wikiwand page for Kernfs (Linux).

Kernfs (Linux)

Linux内核中, kernfs是一组函数,其中包含创建各种内核子系统内部使用的伪文件系统所需的功能,以便它们可以利用虚拟文件。例如,sysfs 通过提供一组虚拟文件将有关硬件设备和相关驱动程序的信息从内核导出到使用者空間

由于拆分了sysfs使用的部分内部逻辑,kernfs 項目被创建。2014年3月30日发布的内核版本 3.14 中,以 Tejun Heo 为主要作者的相关修補程式并入了Linux 内核主线[1][2]Kernfs 采用了 sysfs 的独立且可重用的功能,因此其他内核子系统可以更轻松、更一致地实现自己的伪文件系统[1][3][4]

kernfs 的主要用户之一是cgroups内部使用的伪文件系统,其重新设计一直持续到 Linux 内核的 3.15 版。[5]

參見

[编辑]
  • Procfs:类 Unix 操作系统中的伪文件系统,它提供有关进程的信息(以及一些其他系统信息)
  • tmpfs:在许多类 Unix 操作系统上用于临时文件存储的伪文件系统

参考來源

[编辑]
  1. ^ 1.0 1.1 Tejun Heo. Linux kernel source tree: kernel/git/torvalds/linux.git: sysfs, kernfs: add skeletons for kernfs. kernel.org. October 13, 2013 [April 2, 2014]. 
  2. ^ Linux kernel 3.14, Section 3. Core. kernelnewbies.org. March 30, 2014 [July 25, 2014]. (原始内容存档于2021-01-15). 
  3. ^ Michael Larabel. Linux kernel's sysfs logic turns into "kernfs" for 3.14. Phoronix. January 20, 2014 [April 2, 2014]. (原始内容存档于2022-03-29). 
  4. ^ Tejun Heo. sysfs: separate out kernfs, part #1. LWN.net. October 24, 2013 [July 25, 2014]. (原始内容存档于2022-03-29). 
  5. ^ Tejun Heo. Linux kernel source tree: kernel/git/torvalds/linux.git: cgroups: convert to kernfs. kernel.org. February 11, 2014 [May 23, 2014]. 

外部链接

[编辑]
{{bottomLinkPreText}} {{bottomLinkText}}
Kernfs (Linux)
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?