mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
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)
This commit is contained in:
parent
4befb026cf
commit
88bfa32479
3 changed files with 22 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue