Conceptual
Login

Sysfs: The Device Model Seen From User Space

Sysfs is a directory tree, mounted under the system directory, that mirrors the kernel's internal picture of buses, devices and drivers as folders and small text files. You can read it to see which driver is bound to which device, what resources a card was given, and what a driver exposes as tunable settings. It is the first place to look when you want to know whether the kernel agrees with you about what is plugged in and who owns it.

Questions this Concept answers

  • Why is sysfs the first place to look when you want to know whether your driver claimed a card?