aboutsummaryrefslogtreecommitdiff
path: root/modutils/modprobe.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* post-1.14.0 fixesDenys Vlasenko2009-05-271-2/+4
| | | | | | | | hush significantly updated. fixes for acpid, awk, depmod, dhcp, gzip, mdev, modprobe, sysctl. libbb fixes. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* further work on modprobeDenis Vlasenko2009-03-061-74/+110
| | | | | | | | | | | | | function old new delta gather_options_str - 75 +75 config_file_action 388 413 +25 load_modules_dep 175 192 +17 add_probe 67 72 +5 modprobe_main 494 488 -6 gather_options 89 - -89 ------------------------------------------------------------------------------ (add/remove: 1/1 grow/shrink: 3/1 up/down: 122/-95) Total: 27 bytes
* modprobe: rework/speedup by Timo Teras (timo.teras AT iki.fi)Denis Vlasenko2009-03-051-145/+217
| | | | | | | | | | | | | | | | | | | | | | function old new delta load_modules_dep - 175 +175 helper_get_module - 106 +106 gather_options - 89 +89 add_probe - 67 +67 config_file_action 345 388 +43 get_or_add_modentry - 10 +10 loaded 4 - -4 read_config 239 234 -5 llist_find 34 - -34 add_option 60 - -60 modprobe_main 567 494 -73 do_modprobe 601 273 -328 ------------------------------------------------------------------------------ (add/remove: 5/3 grow/shrink: 1/3 up/down: 490/-504) Total: -14 bytes text data bss dec hex filename 816778 476 7888 825142 c9736 busybox_old 816768 476 7880 825124 c9724 busybox_unstripped
* modprobe: emit "can't open 'modules.dep': (errno)" instead of "module not found"Denis Vlasenko2009-03-031-13/+14
| | | | | | | | | | | | | | | | *: s/can't open %s/can't open '%s'/, it's better to use same string. function old new delta do_modprobe 588 601 +13 config_file_action 339 345 +6 modprobe_main 565 570 +5 unable_to_open 14 16 +2 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 4/0 up/down: 26/0) Total: 26 bytes text data bss dec hex filename 816800 476 7892 825168 c9750 busybox_old 816812 476 7892 825180 c975c busybox_unstripped
* *: tweak error messagesDenis Vlasenko2008-12-241-2/+2
| | | | | | | | | | sysctl: shrink; support recursing if name is a directory: "sysctl net.ipv4.conf". Patch by xmaks AT email.cz text data bss dec hex filename 793659 504 7492 801655 c3b77 busybox_old 793576 504 7492 801572 c3b24 busybox_unstripped
* modprobe: fix a segfault when modprobe is called with no arguments at allDenis Vlasenko2008-10-311-24/+28
| | | | | | function old new delta modprobe_main 559 535 -24
* modutils/*: rewrite by Timo Teras <timo.teras AT iki.fi>Denis Vlasenko2008-09-131-885/+218
| | | | | | | | | | | | | | | - a lot faster (linear algorithmic complexity, smaller memory foot print) - a lot smaller (the old code was overly complicated) - loading of aliases is now module-init-tools compliant - blacklisting is done correctly (-b option added) - module argument quoting done right - depmod now correctly generates modules.symbols and modules.alias add/remove: 16/21 grow/shrink: 4/6 up/down: 6930/-9316 Total: -2386 bytes text data bss dec hex filename 806039 592 6680 813311 c68ff busybox_old 803498 592 6676 810766 c5f0e busybox_unstripped
* modprobe: semi-trivial code shrinkDenis Vlasenko2008-08-061-52/+47
| | | | | | | | | | function old new delta build_dep 870 859 -11 already_loaded 134 112 -22 modprobe_main 449 368 -81 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-114) Total: -114 bytes
* modprobe: use buffering line reads (fgets) instead of reads().Denis Vlasenko2008-08-041-19/+20
| | | | | | | | | | | | | | | libbb: remove reads() function old new delta include_conf_file_act 961 980 +19 localcmd 282 284 +2 already_loaded 155 151 -4 in_cksum 58 53 -5 modprobe_main 1630 1624 -6 reads 129 - -129 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 2/3 up/down: 21/-144) Total: -123 bytes
* hush: add #defines to switch off break/continue if loops are not supportedDenis Vlasenko2008-07-291-1/+1
| | | | | | *: remove a few inline keywords no code changes
* modprobe: support for /etc/modprobe.d, by Timo Teras.Denis Vlasenko2008-07-291-63/+106
| | | | | | | | | | | | | | function old new delta include_conf_file_act - 929 +929 include_conf_recursive - 30 +30 include_conf_file2 - 30 +30 include_conf_file - 14 +14 include_conf_dir_act - 14 +14 build_dep 1011 875 -136 include_conf 922 - -922 ------------------------------------------------------------------------------ (add/remove: 5/1 grow/shrink: 0/1 up/down: 1017/-1058) Total: -41 bytes
* libbb: introduce and use xrealloc_vectorDenis Vlasenko2008-07-081-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta xrealloc_vector_helper - 51 +51 create_list 84 99 +15 getopt_main 690 695 +5 passwd_main 1049 1053 +4 get_cached 85 89 +4 msh_main 1377 1380 +3 add_match 42 41 -1 read_lines 720 718 -2 grave 1068 1066 -2 fill_match_lines 143 141 -2 add_to_dirlist 67 65 -2 add_input_file 49 47 -2 act 252 250 -2 fsck_main 2252 2246 -6 man_main 765 757 -8 bb_internal_initgroups 228 220 -8 cut_main 1052 1041 -11 add_edge_to_node 55 43 -12 dpkg_main 3851 3835 -16 ifupdown_main 2202 2178 -24 sort_main 838 812 -26 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 5/15 up/down: 82/-124) Total: -42 bytes
* mdoprobe: fix SEGV bug (by Vlad Dronnikov)Denis Vlasenko2008-06-221-3/+1
|
* whitespace and comment fixes, no code changesDenis Vlasenko2008-06-161-3/+3
|
* - shrink modprobe a little bit (~-40 bytes). ACKed by Yann.Bernhard Reutner-Fischer2008-05-311-8/+5
|
* - fix overflow; improve documentation while at itBernhard Reutner-Fischer2008-05-281-9/+9
|
* - Add config option for DEFAULT_DEPMOD_FILE and DEFAULT_DEPMOD_FILE.Bernhard Reutner-Fischer2008-05-271-8/+8
| | | | No obj-code changes.
* modprobe: fix for blacklistingDenis Vlasenko2008-05-221-4/+5
| | | | | | | | | | | | The patch makes the order of the alias/blacklist in modprobe.conf irrelevant (like module-utils' modprobe). In first patch the alias had to be defined before the blacklist which caused problems because the modprobe.conf file is read before /lib/modules/*/modules.alias. The attatched patch will mark the blacklisted module itself rather than trying to find the alias that points to the blacklisted module and test this flag later in the alias resolving stage.
* modprobe: optional "blacklist" command support (by Natanael Copa)Denis Vlasenko2008-05-181-5/+26
| | | | | | | | | is_conf_command - 56 +56 include_conf 898 917 +19 check_dep 348 356 +8 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 2/0 up/down: 83/0) Total: 83 bytes
* save a bit of code with *strchrnul = '\0' trickDenis Vlasenko2007-12-261-4/+1
| | | | | | | | | function old new delta nextline 59 55 -4 include_conf 902 898 -4 read_config 414 406 -8 fsck_main 1880 1869 -11
* *: remove superfluous "?" in option parsingDenis Vlasenko2007-11-101-1/+1
|
* modprobe: fix a bug where we were entering endless loopDenis Vlasenko2007-11-061-1/+1
| | | | | syslogd: strip trailing '\n' too, not only NULs
* insmod: code shrink, stop exporting insmod_ng_main.Denis Vlasenko2007-11-021-136/+134
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta add_ksymoops_symbols - 421 +421 static.section_names 20 40 +20 lsmod_main 425 424 -1 set_tainted 153 150 -3 main_opts 4 - -4 obj_symbol_patch 47 42 -5 obj_string_patch 144 139 -5 already_loaded 144 138 -6 check_dep 348 341 -7 append_option 75 68 -7 obj_allocate_commons 515 501 -14 new_process_module_arguments 1039 1018 -21 arch_new_symbol 31 9 -22 check_module_name_match 85 61 -24 obj_create_alloced_section 164 136 -28 include_conf 930 902 -28 modprobe_main 1643 1535 -108 obj_load 924 777 -147 insmod_ng_main 245 - -245 insmod_main 4122 3794 -328 ------------------------------------------------------------------------------ (add/remove: 1/2 grow/shrink: 1/16 up/down: 441/-1003) Total: -562 bytes text data bss dec hex filename 776020 974 9420 786414 bffee busybox_old 775384 974 9420 785778 bfd72 busybox_unstripped
* add -fvisibility=hidden to CC flags, mark XXX_main functionsDenis Vlasenko2007-10-111-2/+2
| | | | | EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
* don't pass argc in getopt32, it's superfluousDenis Vlasenko2007-08-181-1/+1
| | | | | | | | (add/remove: 0/0 grow/shrink: 12/131 up/down: 91/-727) Total: -636 bytes text data bss dec hex filename 773469 1058 11092 785619 bfcd3 busybox_old 772644 1058 11092 784794 bf99a busybox_unstripped
* modprobe: add scanning of /lib/modules/`uname -r`/modules.symbolsDenis Vlasenko2007-08-161-1/+16
| | | | | (by Yann E. MORIN)
* introduce and use bb_basename()Denis Vlasenko2007-06-301-15/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta bb_basename - 26 +26 sv_main 1226 1225 -1 passwd_main 1985 1983 -2 showdirs 482 478 -4 sendCgi 1811 1807 -4 make_device 1354 1350 -4 handleIncoming 2443 2439 -4 func_name 82 78 -4 service_name 2292 2285 -7 main 909 901 -8 cmp_main 555 547 -8 test_main 434 422 -12 act 228 216 -12 find_pair 180 164 -16 rmmod_main 298 280 -18 find_pid_by_name 156 134 -22 modprobe_main 1606 1576 -30 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/16 up/down: 26/-156) Total: -130 bytes text data bss dec hex filename 734933 3028 14400 752361 b7ae9 busybox_old 734801 3028 14400 752229 b7a65 busybox_unstripped
* hush: fix read builtin to not read ahead past eol and to not useDenis Vlasenko2007-06-131-1/+1
| | | | | insane amounts of stack. Testsuite updated.
* usage.c: remove reference to busybox.hDenis Vlasenko2007-05-261-1/+1
| | | | | *: s/include "busybox.h"/include "libbb.h"
* style fixes, no code changesDenis Vlasenko2007-04-161-1/+2
|
* style fixes, no code changes.Denis Vlasenko2007-04-111-2/+2
|
* style fixes. No code changes.Denis Vlasenko2007-04-101-2/+2
|
* /etc/modules.conf is a 2.6.x file while /etc/modules.conf and ↵Mike Frysinger2007-02-081-4/+8
| | | | /etc/conf.modules are 2.4.x and older files
* touchup style; no functional changesMike Frysinger2007-02-081-23/+12
|
* suppress warnings about easch <applet>_main() havingDenis Vlasenko2007-02-031-0/+1
| | | | no preceding prototype
* preparatory patch for -Wwrite-strings #6Denis Vlasenko2007-01-291-25/+22
|
* modprobe: reformat to match bbox styleDenis Vlasenko2006-10-271-291/+291
|
* last nail into error_msg() (de)capitalizationDenis Vlasenko2006-10-271-2/+2
|
* use skip_whitespace where appropriateDenis Vlasenko2006-10-251-8/+4
|
* message string changes, mostly for consistency, also -32 bytes in .rodataDenis Vlasenko2006-10-201-2/+2
|
* add open_read_close() and similar stuffDenis Vlasenko2006-10-141-30/+1
|
* getopt_ulflags -> getopt32.Denis Vlasenko2006-10-031-2/+2
| | | | | | | | It is impossible to formulate sane ABI based on size of ulong because it can be 32-bit or 64-bit. Basically it means that you cannot portably use more that 32 option chars in one call anyway... Make it explicit.
* Patch from Yann Morin so modprobe won't return failure if the module getsRob Landley2006-08-221-2/+11
| | | | loaded while it's running (ala multi-device hotplug).
* Remove xcalloc() and convert its callers to xzalloc(). About half of themRob Landley2006-08-031-2/+2
| | | | | were using "1" as one of the arguments anyway, and as for the rest a multiply and a push isn't noticeably bigger than pushing two arguments on the stack.
* Remove bb_ prefixes from xfuncs.c (and a few other places), consolidateRob Landley2006-08-031-22/+13
| | | | | | | | | | things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only had one user), clean up lots of #includes... General cleanup pass. What I've been doing for the last couple days. And it conflicts! I've removed httpd.c from this checkin due to somebody else touching that file. It builds for me. I have to catch a bus. (Now you know why I'm looking forward to Mercurial.)
* Patch from Yann Morin to fix bug 941, underscores in module aliases.Rob Landley2006-07-201-2/+33
|
* Patch from Yann Morin to look for modules.conf in the right place on 2.6.Rob Landley2006-07-191-15/+23
| | | | | Fixes http://bugs.busybox.net/view.php?id=942
* Jean Wolter writes: modprobe checks, whether a module is already loaded. The ↵Mike Frysinger2006-06-211-1/+1
| | | | function used for this currently always returns 0.
* Attempt at fixing bug 836, vaguely based on patch from somebody namedRob Landley2006-06-141-16/+29
| | | | clausmuus, forwarded to me by Yann E. Morin.
* Attempt at fixing bug 815 by upgrading bb_spawn() so that builtins are atRob Landley2006-06-141-21/+2
| | | | | | | | the start of the path. (This should be under the same config option as the standalone shell, but right now that's buried in the shell menu.) Also add the ability to specify CONFIG_BUSYBOX_EXEC_PATH with /proc/self/exe as an overrideable default.