docs: symbol-namespaces: mention sysfs attribute

Reference the new /sys/module/*/import_ns sysfs attribute in docs as an
alternative to modinfo for inspecting imported namespaces of loaded
modules.

Signed-off-by: Nicholas Sielicki <linux@opensource.nslick.com>
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
This commit is contained in:
Nicholas Sielicki
2026-03-07 03:00:10 -06:00
committed by Sami Tolvanen
parent 3fe1dcbc2d
commit f15dbe8a94

View File

@@ -114,6 +114,11 @@ inspected with modinfo::
import_ns: USB_STORAGE import_ns: USB_STORAGE
[...] [...]
For modules that are currently loaded, imported namespaces are also available
via sysfs::
$ cat /sys/module/ums_karma/import_ns
USB_STORAGE
It is advisable to add the MODULE_IMPORT_NS() statement close to other module It is advisable to add the MODULE_IMPORT_NS() statement close to other module
metadata definitions like MODULE_AUTHOR() or MODULE_LICENSE(). metadata definitions like MODULE_AUTHOR() or MODULE_LICENSE().