* [PATCH] SYSFS: Correct misleading documentation in params.c.
@ 2008-04-25 16:46 Robert P. J. Day
0 siblings, 0 replies; only message in thread
From: Robert P. J. Day @ 2008-04-25 16:46 UTC (permalink / raw)
To: trivial; +Cc: Linux Kernel Mailing List
A couple comment fixes related to creating module parameter files
under /sys.
Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
---
i have no idea what means that reference to symlinks to
/sys/parameters. something long since gone away?
diff --git a/kernel/params.c b/kernel/params.c
index afc46a2..52ac726 100644
--- a/kernel/params.c
+++ b/kernel/params.c
@@ -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
========================================================================
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-04-25 16:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-25 16:46 [PATCH] SYSFS: Correct misleading documentation in params.c Robert P. J. Day
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®