LWN.net Logo

Modules move into sysfs

Greg Kroah-Hartman has posted a patch with the rather uninspiring title of "add kobject to struct module." What the patch really does, however, is enable the creation of a /sys/module directory which will contain information about the modules currently loaded into the kernel. With this patch, the only available information (beyond the name of the module) is the reference count, but that will be expanded in the future. Eventually all of the information found in /proc/modules will also appear in the /sys/module tree, though in the standard sysfs "one value per file" format. The values of parameters passed to the module will also be made available for inspection and (permissions willing) change.

This patch continues the process of moving system information from /proc to /sys. It may take a couple more development series worth of work, but /proc might just end up being pared down to the process information it was originally created to hold.


(Log in to post comments)

Copyright © 2003, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds