[PATCH] modprobe blacklist support
Natanael Copa
natanael.copa at gmail.com
Sat May 17 01:07:25 PDT 2008
Hi,
Attatched is a patch that adds support for the 'blacklist' command in
modprobe.conf. This useful if you want prevent your hardware
autodetection scripts to load modules like evdev, frame buffer drivers
etc.
Just like standard modprobe you can still modprobe blacklisted modules
by specifying them directly.
bloatcheck on 64bit glibc/gcc-4
function old new delta
is_conf_command - 67 +67
include_conf 998 1032 +34
check_dep 417 425 +8
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 2/0 up/down: 109/0) Total: 109
bytes
text data bss dec hex filename
14638 797 8312 23747 5cc3 busybox_old
14796 797 8312 23905 5d61 busybox_unstripped
On x86 glibc/gcc-4 the patch reduced size with 6 bytes when the
blacklist was disabled (due to the is_conf_command function)
-nc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bb-modprobe-blacklist.patch
Type: text/x-patch
Size: 3509 bytes
Desc: not available
Url : http://busybox.net/lists/busybox/attachments/20080517/9a0652f4/attachment.bin
More information about the busybox
mailing list