]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
docs: symbol-namespaces: mention sysfs attribute
authorNicholas Sielicki <linux@opensource.nslick.com>
Sat, 7 Mar 2026 09:00:10 +0000 (03:00 -0600)
committerSami Tolvanen <samitolvanen@google.com>
Thu, 19 Mar 2026 22:49:37 +0000 (22:49 +0000)
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>
Documentation/core-api/symbol-namespaces.rst

index 034898e81ba201097330ab9875429e7d3fa30c0f..2304d5bffccea3072ae4aff4448ffd3ebb460107 100644 (file)
@@ -114,6 +114,11 @@ inspected with modinfo::
        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
 metadata definitions like MODULE_AUTHOR() or MODULE_LICENSE().