summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Sielicki <linux@opensource.nslick.com>2026-03-07 12:00:10 +0300
committerSami Tolvanen <samitolvanen@google.com>2026-03-20 01:49:37 +0300
commitf15dbe8a94b6e3768b10e10bf8ab95b28682db80 (patch)
tree847320bef0696e417d72df6de3d0b9071d863e17
parent3fe1dcbc2d20c5dbc581c0bb458e05365bfffcf7 (diff)
downloadlinux-f15dbe8a94b6e3768b10e10bf8ab95b28682db80.tar.xz
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>
-rw-r--r--Documentation/core-api/symbol-namespaces.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/core-api/symbol-namespaces.rst b/Documentation/core-api/symbol-namespaces.rst
index 034898e81ba2..2304d5bffcce 100644
--- a/Documentation/core-api/symbol-namespaces.rst
+++ b/Documentation/core-api/symbol-namespaces.rst
@@ -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().