Skip to contentSkip to conversation

There is no /sys/parameters

PATCH Applied Jean Delvare 2 participants 2 messages May 31, 2013 – Jun 3, 2013 Module support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 There is no /sys/parameters

There is no such path as /sys/parameters, module parameters live in /sys/module/*/parameters.

---
 include/linux/moduleparam.h |    2 +-
 kernel/params.c             |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
include/linux/moduleparam.h +1 -1
@@ -439,7 +439,7 @@ extern struct kernel_param_ops param_ops
 extern int param_set_copystring(const char *val, const struct kernel_param *);
 extern int param_get_string(char *buffer, const struct kernel_param *kp);
 
-/* for exporting parameters in /sys/parameters */
+/* for exporting parameters in /sys/module/.../parameters */
 
 struct module;
 
kernel/params.c +1 -1
@@ -787,7 +787,7 @@ static void __init kernel_add_sysfs_para
 }
 
 /*
- * param_sysfs_builtin - add contents in /sys/parameters for built-in modules
+ * param_sysfs_builtin - add sysfs parameters for built-in modules
  *
  * Add module_parameters to sysfs for "modules" built into the kernel.
  *
Signature · 1 line
Jean Delvare
#1 lore raw
Quoted 2 lines · Jean Delvare

There is no such path as /sys/parameters, module parameters live in /sys/module/*/parameters.

Thanks, applied!

Cheers,
Rusty.

Quoted 33 lines
---
 include/linux/moduleparam.h |    2 +-
 kernel/params.c             |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
include/linux/moduleparam.h +1 -1
@@ -439,7 +439,7 @@ extern struct kernel_param_ops param_ops
 extern int param_set_copystring(const char *val, const struct kernel_param *);
 extern int param_get_string(char *buffer, const struct kernel_param *kp);
 
-/* for exporting parameters in /sys/parameters */
+/* for exporting parameters in /sys/module/.../parameters */
 
 struct module;
 
kernel/params.c +1 -1
@@ -787,7 +787,7 @@ static void __init kernel_add_sysfs_para
 }
 
 /*
- * param_sysfs_builtin - add contents in /sys/parameters for built-in modules
+ * param_sysfs_builtin - add sysfs parameters for built-in modules
  *
  * Add module_parameters to sysfs for "modules" built into the kernel.
  *
Signature · 2 lines
-- 
Jean Delvare