Re: [UPDATED PATCH 1/2] export module parameters in sysfs for modules _and_ built-in code

From: Patrick Mansfield
Date: Fri Aug 13 2004 - 12:14:44 EST


I finally tried this out, nice.

Is someone pushing it? I don't see it in 2.6.8-rc4-mm1.

-- Patrick Mansfield

On Mon, Aug 02, 2004 at 11:47:10PM +0200, Dominik Brodowski wrote:

> Create a new /sys top-level directory named "parameters", and make all
> to-be-sysfs-exported module parameters available as attributes to kobjects.
> Currently, only module parameters in _modules_ are exported in /sys/modules/,
> while those of "modules" built into the kernel can be set by the kernel command
> line, but not read or set via sysfs.
>
> For modules, a symlink
>
> brodo@mondschein param $ ls -l /sys/module/ehci_hcd/ | grep param
> lrwxrwxrwx 1 brodo brodo 0 1. Aug 17:50 parameters -> ../../parameters/ehci_hcd
>
> is added. Removal of double module parameters export for modules is sent in a second
> patch, so the diffstat
>
> include/linux/module.h | 2
> include/linux/moduleparam.h | 14 +
> kernel/module.c | 16 +
> kernel/params.c | 368 ++++++++++++++++++++++++++++++++++++++++++++
> 4 files changed, 399 insertions(+), 1 deletion(-)
>
> looks worse than it is.
>
> Much of this work is based on the current code for modules only to be found in
> linux/kernel/module.c; many thanks to Rusty Russell for his code and his
> feedback!
>
> Signed-off-by: Dominik Brodowski <linux@xxxxxxxx>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/