diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2011-07-24 22:06:04 +0930 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2011-07-24 22:06:04 +0930 |
commit | 88bfa3247961fe5f3623f4d2cf1cd5dc72457598 (patch) | |
tree | d3ce6a00501ed34655918815623642698eece9ca /include/linux/module.h | |
parent | 4befb026cf74b52fc7d382142bbfc0e9b6aab5e7 (diff) | |
download | linux-88bfa3247961fe5f3623f4d2cf1cd5dc72457598.tar.gz linux-88bfa3247961fe5f3623f4d2cf1cd5dc72457598.tar.bz2 linux-88bfa3247961fe5f3623f4d2cf1cd5dc72457598.zip |
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)
Diffstat (limited to 'include/linux/module.h')
-rw-r--r-- | include/linux/module.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/module.h b/include/linux/module.h index b87e7625a98c..1c30087a2d81 100644 --- a/include/linux/module.h +++ b/include/linux/module.h @@ -75,6 +75,7 @@ struct module_version_attribute { extern ssize_t __modver_version_show(struct module_attribute *, struct module_kobject *, char *); +extern struct module_attribute module_uevent; /* These are either module local, or the kernel's dummy ones. */ extern int init_module(void); |