diff options
Diffstat (limited to 'modutils')
-rw-r--r-- | modutils/Config.src | 31 | ||||
-rw-r--r-- | modutils/modprobe-small.c | 34 |
2 files changed, 34 insertions, 31 deletions
diff --git a/modutils/Config.src b/modutils/Config.src index 4227f356a..84ff34a08 100644 --- a/modutils/Config.src +++ b/modutils/Config.src | |||
@@ -5,6 +5,37 @@ | |||
5 | 5 | ||
6 | menu "Linux Module Utilities" | 6 | menu "Linux Module Utilities" |
7 | 7 | ||
8 | config MODPROBE_SMALL | ||
9 | bool "Simplified modutils" | ||
10 | default y | ||
11 | select PLATFORM_LINUX | ||
12 | help | ||
13 | Simplified modutils. | ||
14 | |||
15 | With this option modprobe does not require modules.dep file | ||
16 | and does not use /etc/modules.conf file. | ||
17 | It scans module files in /lib/modules/`uname -r` and | ||
18 | determines dependencies and module alias names on the fly. | ||
19 | This may make module loading slower, most notably | ||
20 | when one needs to load module by alias (this requires | ||
21 | scanning through module _bodies_). | ||
22 | |||
23 | At the first attempt to load a module by alias modprobe | ||
24 | will try to generate modules.dep.bb file in order to speed up | ||
25 | future loads by alias. Failure to do so (read-only /lib/modules, | ||
26 | etc) is not reported, and future modprobes will be slow too. | ||
27 | |||
28 | NB: modules.dep.bb file format is not compatible | ||
29 | with modules.dep file as created/used by standard module tools. | ||
30 | |||
31 | Additional module parameters can be stored in | ||
32 | /etc/modules/$module_name files. | ||
33 | |||
34 | Apart from modprobe, other utilities are also provided: | ||
35 | - insmod is an alias to modprobe | ||
36 | - rmmod is an alias to modprobe -r | ||
37 | - depmod generates modules.dep.bb | ||
38 | |||
8 | INSERT | 39 | INSERT |
9 | 40 | ||
10 | comment "Options common to multiple modutils" | 41 | comment "Options common to multiple modutils" |
diff --git a/modutils/modprobe-small.c b/modutils/modprobe-small.c index 51ba42f7a..e3a349b4e 100644 --- a/modutils/modprobe-small.c +++ b/modutils/modprobe-small.c | |||
@@ -7,37 +7,9 @@ | |||
7 | * | 7 | * |
8 | * Licensed under GPLv2, see file LICENSE in this source tree. | 8 | * Licensed under GPLv2, see file LICENSE in this source tree. |
9 | */ | 9 | */ |
10 | //config:config MODPROBE_SMALL | 10 | |
11 | //config: bool "Simplified modutils" | 11 | /* config MODPROBE_SMALL is defined in Config.src to ensure better "make config" order */ |
12 | //config: default y | 12 | |
13 | //config: select PLATFORM_LINUX | ||
14 | //config: help | ||
15 | //config: Simplified modutils. | ||
16 | //config: | ||
17 | //config: With this option modprobe does not require modules.dep file | ||
18 | //config: and does not use /etc/modules.conf file. | ||
19 | //config: It scans module files in /lib/modules/`uname -r` and | ||
20 | //config: determines dependencies and module alias names on the fly. | ||
21 | //config: This may make module loading slower, most notably | ||
22 | //config: when one needs to load module by alias (this requires | ||
23 | //config: scanning through module _bodies_). | ||
24 | //config: | ||
25 | //config: At the first attempt to load a module by alias modprobe | ||
26 | //config: will try to generate modules.dep.bb file in order to speed up | ||
27 | //config: future loads by alias. Failure to do so (read-only /lib/modules, | ||
28 | //config: etc) is not reported, and future modprobes will be slow too. | ||
29 | //config: | ||
30 | //config: NB: modules.dep.bb file format is not compatible | ||
31 | //config: with modules.dep file as created/used by standard module tools. | ||
32 | //config: | ||
33 | //config: Additional module parameters can be stored in | ||
34 | //config: /etc/modules/$module_name files. | ||
35 | //config: | ||
36 | //config: Apart from modprobe, other utilities are also provided: | ||
37 | //config: - insmod is an alias to modprobe | ||
38 | //config: - rmmod is an alias to modprobe -r | ||
39 | //config: - depmod generates modules.dep.bb | ||
40 | //config: | ||
41 | //config:config FEATURE_MODPROBE_SMALL_OPTIONS_ON_CMDLINE | 13 | //config:config FEATURE_MODPROBE_SMALL_OPTIONS_ON_CMDLINE |
42 | //config: bool "Accept module options on modprobe command line" | 14 | //config: bool "Accept module options on modprobe command line" |
43 | //config: default y | 15 | //config: default y |