Populating Sysfs

Since sysfs is an interface to export data from the kernel, only the kernel itself can populate sysfs with file and directory entries. This can be triggered from places all over the kernel, and, indeed, such operations are ubiquitous within the whole tree, which renders it impossible to cover all appearances in detail. Thus only the general methods used to connect sysfs with the internal data structures of the diverse subsystems are demonstrated; the methods used for this purpose are quite similar everywhere.

Continue reading here: Registering Subsystems

Was this article helpful?

0 0