[PATCH RFC v2 02/13] proc: add config option SYSCTL_MODULE_ALIASES
Mauricio Faria de Oliveira
mfo at igalia.com
Tue Aug 18 19:28:01 PDT 2026
Add a config option for the 'sysctl:' module aliases feature.
Signed-off-by: Mauricio Faria de Oliveira <mfo at igalia.com>
---
fs/proc/Kconfig | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/fs/proc/Kconfig b/fs/proc/Kconfig
index 24f5a36f45df8b1d6831a0f4011c1f6b1987cb52..e6591ec4bcf0ab2ad96ca7dc90b831b2f9873ac2 100644
--- a/fs/proc/Kconfig
+++ b/fs/proc/Kconfig
@@ -98,6 +98,19 @@ config SYSCTL
building a kernel for install/rescue disks or your system is very
limited in memory.
+config SYSCTL_MODULE_ALIASES
+ bool "'sysctl:' module aliases (EXPERIMENTAL)"
+ depends on SYSCTL && MODULES
+ default n
+ help
+ The /proc/sys files registered by a module do not exist until the
+ module is loaded; meanwhile, userspace cannot find or access them.
+
+ This options adds 'sysctl:*/<path>/<file>' module aliases for the
+ /proc/sys files registered by modules, so modules for nonexistent
+ files can be loaded with 'modprobe sysctl:/proc/sys/<path>/<file>'
+ by userspace when needed.
+
config PROC_PAGE_MONITOR
default y
depends on PROC_FS && MMU
--
2.47.3
More information about the linux-riscv
mailing list