summaryrefslogtreecommitdiff
path: root/modutils/modutils.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* modutils: explain why we no longer quote paramsDenys Vlasenko2010-08-251-0/+5
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* insmod: Do not add a pair of "" around the arguments of the module.Carmelo AMOROSO2010-08-251-2/+1
| | | | | | | | | | If there are some spaces in the insmod command line, then this will be splitted in single words as separate elements of argv. It just needs to chain them together in the options string passed to the sys_init_module syscall. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com> Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* *: make GNU licensing statement forms more regularDenys Vlasenko2010-08-161-1/+1
| | | | | | | This change retains "or later" state! No licensing _changes_ here, only form is adjusted (article, space between "GPL" and "v2" and so on). Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* modutils: add FEATURE_INSMOD_TRY_MMAP optionDenys Vlasenko2009-10-251-10/+53
| | | | | | | | | | | function old new delta try_to_mmap_module - 121 +121 bb_init_module_24 4514 4578 +64 bb_init_module 119 173 +54 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 2/0 up/down: 239/0) Total: 239 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* modprobe: correct exitcode handling and error messages with respect to -qDenys Vlasenko2009-06-171-28/+37
| | | | | | | | | | | | | | function old new delta do_modprobe 319 339 +20 bb_delete_module 10 26 +16 moderror 62 71 +9 bb_init_module 112 119 +7 modprobe_main 488 494 +6 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 5/0 up/down: 58/0) Total: 58 bytes Signed-off-by: Gilles Espinasse <g.esp@free.fr> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* depmod: fix handling of .gz modulesDenys Vlasenko2009-05-181-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* move llist_find_str from modutils to libbbDenis Vlasenko2009-04-131-13/+0
|
* modutils: remove redundant sanitizationDenis Vlasenko2009-04-131-4/+5
|
* modutils: dont pass NULL options to init_module()Denis Vlasenko2009-03-291-1/+1
|
* insmod/modprobe: do not pass NULL to kernel as module parameterDenis Vlasenko2009-03-131-2/+4
|
* modutils: delete unused global variableDenis Vlasenko2009-03-051-2/+0
| | | | | | | | | | | | | function old new delta modprobe_main 570 567 -3 insmod_main 101 98 -3 insmod_outputname 4 - -4 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 0/2 up/down: 0/-10) Total: -10 bytes text data bss dec hex filename 816784 476 7892 825152 c9740 busybox_old 816778 476 7888 825142 c9736 busybox_unstripped
* modutils: oveflow fixDenis Vlasenko2009-02-261-1/+1
|
* *: remove superfluous casts. no code changesDenis Vlasenko2008-11-061-1/+1
|
* modprobe: fix a segfault when modprobe is called with no arguments at allDenis Vlasenko2008-10-311-1/+1
| | | | | | function old new delta modprobe_main 559 535 -24
* modutils/*: rewrite by Timo Teras <timo.teras AT iki.fi>Denis Vlasenko2008-09-131-0/+141
- 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