1 |
2010/10/21 Nikita Kipriyanov <merlin@×××××.ru>: |
2 |
> В связи с этим вопрос - есть ли возможность указать параметры модуля при |
3 |
> старте ядра, скажем, в командной строке ядра? |
4 |
|
5 |
Module-Specific Options |
6 |
|
7 |
In addition to the options listed in this chapter, parameters for |
8 |
modules that are |
9 |
built in to the kernel can also be passed on the command line. (Dynamically |
10 |
loaded modules, of course, are not in memory when the kernel boots and there- |
11 |
fore cannot be passed as parameters at boot time.) The syntax for passing |
12 |
parameters consists of the module name followed by a dot (.) and the parameter. |
13 |
|
14 |
For example, the usbcore module accepts the parameter blinkenlights to display |
15 |
flashing lights on all supported USB 2.0 hubs (don’t ever say the kernel devel- |
16 |
opers don’t have a sense of humor). To set this parameter when loading the |
17 |
module dynamically, you would enter: |
18 |
|
19 |
$ modprobe usbcore blinkenlights=1 |
20 |
|
21 |
But if the usbcore module is built into the kernel, you achieve the |
22 |
same effect by |
23 |
invoking the kernel with the following option: |
24 |
|
25 |
usbcore.blinkenlights=1 |
26 |
|
27 |
-- |
28 |
Edward "Hades" Toroshchin, |
29 |
dr_lepper on irc.freenode.org |