module: add /sys/module/<name>/uevent files
authorKay Sievers <kay.sievers@vrfy.org>
Sun, 24 Jul 2011 12:36:04 +0000 (21:36 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Sun, 24 Jul 2011 12:36:04 +0000 (21:36 +0930)
commit88bfa3247961fe5f3623f4d2cf1cd5dc72457598
treed3ce6a00501ed34655918815623642698eece9ca
parent4befb026cf74b52fc7d382142bbfc0e9b6aab5e7
module: add /sys/module/<name>/uevent files

Userspace wants to manage module parameters with udev rules.
This currently only works for loaded modules, but not for
built-in ones.

To allow access to the built-in modules we need to
re-trigger all module load events that happened before any
userspace was running. We already do the same thing for all
devices, subsystems(buses) and drivers.

This adds the currently missing /sys/module/<name>/uevent files
to all module entries.

Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (split & trivial fix)
include/linux/module.h
kernel/module.c
kernel/params.c