views:

84

answers:

1

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.

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.

Thanks,

+5  A: 

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.

CesarB
Very helpful...Thanks!
Steve Hawkins
In short, all linux documentation is in Documentation/. :)
presario
@presario: not all, part of it (mostly the system calls) can be found at http://www.kernel.org/doc/man-pages/
CesarB