diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2007-02-02 10:39:12 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-02-16 18:19:15 -0500 |
commit | c353c3fb0700a3c17ea2b0237710a184232ccd7f (patch) | |
tree | 7b5fd590bd9b0a08bee8425ad074e993629683d1 /kernel/params.c | |
parent | 89790fd789e024b23eb1fbccedd84a2015441ce0 (diff) |
Driver core: let request_module() send a /sys/modules/kmod/-uevent
On recent systems, calls to /sbin/modprobe are handled by udev depending
on the kind of device the kernel has discovered. This patch creates an
uevent for the kernels internal request_module(), to let udev take control
over the request, instead of forking the binary directly by the kernel.
The direct execution of /sbin/modprobe can be disabled by setting:
/sys/module/kmod/mod_request_helper (/proc/sys/kernel/modprobe)
to an empty string, the same way /proc/sys/kernel/hotplug is disabled on an
udev system.
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'kernel/params.c')
-rw-r--r-- | kernel/params.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/params.c b/kernel/params.c index 553cf7d6a4be..7d231c6c1334 100644 --- a/kernel/params.c +++ b/kernel/params.c | |||
@@ -714,6 +714,7 @@ static int __init param_sysfs_init(void) | |||
714 | } | 714 | } |
715 | 715 | ||
716 | param_sysfs_builtin(); | 716 | param_sysfs_builtin(); |
717 | kmod_sysfs_init(); | ||
717 | 718 | ||
718 | return 0; | 719 | return 0; |
719 | } | 720 | } |