We use the /proc and /sys file systems in Linux to discover various types of system configuration information. Typically, we spelunk around through the different files and directories until we find the information that we need.
我们使用Linux中的/ proc和/ sys文件系统来发现各种类型的系统配置信息。通常,我们会浏览不同的文件和目录,直到找到所需的信息。
I'm wondering if anyone knows of a definitive resource that documents how one would navigate through the /proc and /sys file systems to locate specific information. We primarily grab USB, PCI and SCSI information from various files in these file systems.
我想知道是否有人知道一个权威资源,它记录了如何通过/ proc和/ sys文件系统导航以查找特定信息。我们主要从这些文件系统中的各种文件中获取USB,PCI和SCSI信息。
Thanks,
1 个解决方案
#1
The definitive resource for /sys
is Documentation/sysfs-rules.txt. The definitive resource for /proc/sys
is Documentation/sysctl/. The definitive resource for the rest of /proc
appears to be Documentation/filesystems/proc.txt. The rest of the Documentation/
directory in the Linux kernel source has other interesting information. In particular, Documentation/ABI/ mentions the stability of each interface.
/ sys的权威资源是Documentation / sysfs-rules.txt。 / proc / sys的权威资源是Documentation / sysctl /。 / proc其余部分的权威资源似乎是Documentation / filesystems / proc.txt。 Linux内核源代码中的其余Documentation /目录还有其他有趣的信息。特别是,Documentation / ABI /提到了每个接口的稳定性。
#1
The definitive resource for /sys
is Documentation/sysfs-rules.txt. The definitive resource for /proc/sys
is Documentation/sysctl/. The definitive resource for the rest of /proc
appears to be Documentation/filesystems/proc.txt. The rest of the Documentation/
directory in the Linux kernel source has other interesting information. In particular, Documentation/ABI/ mentions the stability of each interface.
/ sys的权威资源是Documentation / sysfs-rules.txt。 / proc / sys的权威资源是Documentation / sysctl /。 / proc其余部分的权威资源似乎是Documentation / filesystems / proc.txt。 Linux内核源代码中的其余Documentation /目录还有其他有趣的信息。特别是,Documentation / ABI /提到了每个接口的稳定性。