Skip to contentSkip to conversation

SYSFS: Correct misleading documentation in params.c.

PATCH New Robert P. J. Day 1 participant 1 message Apr 25, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 SYSFS: Correct misleading documentation in params.c.

A couple comment fixes related to creating module parameter files under /sys.

---

i have no idea what means that reference to symlinks to
/sys/parameters. something long since gone away?

kernel/params.c +3 -4
index afc46a2..52ac726 100644
@@ -372,7 +372,7 @@ int param_get_string(char *buffer, struct kernel_param *kp)
 	return strlcpy(buffer, kps->string, kps->maxlen);
 }
 
-/* sysfs output in /sys/modules/XYZ/parameters/ */
+/* sysfs output in /sys/module/XYZ/parameters/ */
 
 extern struct kernel_param __start___param[], __stop___param[];
 
@@ -506,8 +506,7 @@ param_sysfs_setup(struct module_kobject *mk,
  * @kparam: module parameters (array)
  * @num_params: number of module parameters
  *
- * Adds sysfs entries for module parameters, and creates a link from
- * /sys/module/[mod->name]/parameters to /sys/parameters/[mod->name]/
+ * Adds sysfs entries for module parameters.
  */
 int module_param_sysfs_setup(struct module *mod,
 			     struct kernel_param *kparam,
@@ -572,7 +571,7 @@ static void __init kernel_param_sysfs_setup(const char *name,
 }
 
 /*
- * param_sysfs_builtin - add contents in /sys/parameters for built-in modules
+ * param_sysfs_builtin - add contents under /sys for built-in modules
  *
  * Add module_parameters to sysfs for "modules" built into the kernel.
  *

========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
Have classroom, will lecture.

http://crashcourse.ca Waterloo, Ontario, CANADA
========================================================================