History

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.

Kay Sievers committed 19 years ago

Commit c353c3f1 parent 89790fd4 files · +139 −10Browse files

Showing the changes to kernel/params.c (1 of 4 files). Show all

Unified · Split

kernel/params.c+1−0
@@ -714,6 +714,7 @@ static int __init param_sysfs_init(void) · 713 unmodified lines
714714 }
715715
716716 param_sysfs_builtin();
717+ kmod_sysfs_init();
717718
718719 return 0;
719720 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t