1 <!doctype refentry PUBLIC
"-//OASIS//DTD DocBook V4.1//EN" [
2 <!ENTITY debian
"<productname>Debian GNU/Linux</productname>">
3 <!ENTITY docbook
"<productname>DocBook</productname>">
4 <!ENTITY sgml
"<abbrev>SGML</abbrev>">
7 <!-- Stolen from manual page for docbook-to-man, DocBook source file
8 (C) 1999 W. Borgert debacle@debian.org
10 $Id: docbook-to-man.sgml,v 1.8 2002/04/27 15:28:02 debacle Exp $ -->
15 <email>jcm@jonmasters.org
</email>
18 <firstname>Jon
</firstname>
19 <surname>Masters
</surname>
21 <date>2010-
03-
01</date>
24 <refentrytitle>modprobe
</refentrytitle>
25 <manvolnum>8</manvolnum>
28 <refname>modprobe
</refname> <refpurpose>program to add and remove modules from the Linux Kernel
</refpurpose>
32 <command>modprobe
</command>
33 <arg><option>-v
</option></arg>
34 <arg><option>-V
</option></arg>
35 <arg><option>-C
<replaceable>config-file
</replaceable></option></arg>
36 <arg><option>-n
</option></arg>
37 <arg><option>-i
</option></arg>
38 <arg><option>-q
</option></arg>
39 <arg><option>-b
</option></arg>
40 <arg><replaceable>modulename
</replaceable></arg>
41 <arg rep='repeat'
><option><replaceable>module parameters
</replaceable></option></arg>
44 <command>modprobe
</command>
46 <arg><option>-v
</option></arg>
47 <arg><option>-n
</option></arg>
48 <arg><option>-i
</option></arg>
49 <arg rep='repeat'
><option><replaceable>modulename
</replaceable></option></arg>
52 <command>modprobe
</command>
54 <arg>-t
<replaceable>dirname
</replaceable></arg>
55 <arg><option><replaceable>wildcard
</replaceable></option></arg>
58 <command>modprobe
</command>
62 <command>modprobe
</command>
63 <arg>--dump-modversions
</arg> <arg><replaceable>filename
</replaceable></arg>
67 <title>Description
</title>
70 <command>modprobe
</command> intelligently adds or removes a
71 module from the Linux kernel: note that for convenience, there
72 is no difference between _ and - in module names (automatic
73 underscore conversion is performed).
74 <command>modprobe
</command> looks in the module directory
75 <filename>/lib/modules/`uname -r`
</filename> for all
76 the modules and other files, except for the optional
77 <filename>/etc/modprobe.conf
</filename> configuration file and
78 <filename>/etc/modprobe.d
</filename> directory
80 <refentrytitle>modprobe.conf
</refentrytitle><manvolnum>5</manvolnum>
81 </citerefentry>).
<command>modprobe
</command> will also use module
82 options specified on the kernel command line in the form of
83 <module
>.
<option
>.
86 Note that unlike in
2.4 series Linux kernels (which are not supported
87 by this tool) this version of
<command>modprobe
</command> does not
88 do anything to the module itself: the work of resolving symbols
89 and understanding parameters is done inside the kernel. So
90 module failure is sometimes accompanied by a kernel message: see
92 <refentrytitle>dmesg
</refentrytitle><manvolnum>8</manvolnum>
96 <command>modprobe
</command> expects an up-to-date
97 <filename>modules.dep.bin
</filename> file (or fallback human
98 readable
<filename>modules.dep
</filename> file), as generated
99 by the corresponding
<command>depmod
</command> utility shipped
100 along with
<command>modprobe
</command> (see
101 <citerefentry><refentrytitle>depmod
</refentrytitle><manvolnum>8</manvolnum>
102 </citerefentry>). This file lists what other modules each
103 module needs (if any), and
<command>modprobe
</command> uses this
104 to add or remove these dependencies automatically.
107 If any arguments are given after the
108 <replaceable>modulename
</replaceable>, they are passed to the
109 kernel (in addition to any options listed in the configuration
114 <title>OPTIONS
</title>
117 <term><option>-a
</option> <option>--all
</option>
120 <para>Insert all module names on the command line.
125 <term><option>-b
</option> <option>--use-blacklist
</option>
129 This option causes
<command>modprobe
</command> to apply the
130 <command>blacklist
</command> commands in the configuration files
131 (if any) to module names as well. It is usually used by
133 <refentrytitle>udev
</refentrytitle><manvolnum>7</manvolnum>
139 <term><option>-C
</option> <option>--config
</option>
142 <para>This option overrides the default configuration directory/file
143 (
<filename>/etc/modprobe.d
</filename> or
144 <filename>/etc/modprobe.conf
</filename>).
147 This option is passed through
<command>install
</command>
148 or
<command>remove
</command> commands to other
149 <command>modprobe
</command> commands in the
150 MODPROBE_OPTIONS environment variable.
155 <term><option>-c
</option> <option>--showconfig
</option>
158 <para>Dump out the effective configuration from the config directory
164 <term><option>--dump-modversions
</option>
168 Print out a list of module versioning information required by a
169 module. This option is commonly used by distributions in order to
170 package up a Linux kernel module using module versioning deps.
175 <term><option>-d
</option> <option>--dirname
</option>
179 Directory where modules can be found,
180 <filename>/lib/modules/
<replaceable>RELEASE
</replaceable></filename>
186 <term><option>--first-time
</option>
190 Normally,
<command>modprobe
</command> will succeed (and do
191 nothing) if told to insert a module which is already
192 present or to remove a module which isn't present. This is
193 ideal for simple scripts; however, more complicated scripts often
194 want to know whether
<command>modprobe
</command> really
195 did something: this option makes modprobe fail in the
196 case that it actually didn't do anything.
201 <term><option>--force-vermagic
</option>
205 Every module contains a small string containing important
206 information, such as the kernel and compiler versions. If
207 a module fails to load and the kernel complains that the
208 "version magic" doesn't match, you can use this option to
209 remove it. Naturally, this check is there for your
210 protection, so this using option is dangerous unless
211 you know what you're doing.
214 This applies to any modules inserted: both the module (or
215 alias) on the command line and any modules on which it depends.
220 <term><option>--force-modversion
</option>
224 When modules are compiled with CONFIG_MODVERSIONS set, a
225 section detailing the versions of every interfaced used
226 by (or supplied by) the module is created. If a
227 module fails to load and the kernel complains that the
228 module disagrees about a version of some interface, you
229 can use
"--force-modversion" to remove the version
230 information altogether. Naturally, this check is there
231 for your protection, so using this option is dangerous
232 unless you know what you're doing.
235 This applies any modules inserted: both the module (or
236 alias) on the command line and any modules on which it depends.
241 <term><option>-f
</option> <option>--force
</option>
245 Try to strip any versioning information from the module
246 which might otherwise stop it from loading: this is the
247 same as using both
<option>--force-vermagic
</option> and
248 <option>--force-modversion
</option>. Naturally, these
249 checks are there for your protection, so using this option
250 is dangerous unless you know what you are doing.
253 This applies to any modules inserted: both the module (or
254 alias) on the command line and any modules it on which it depends.
259 <term><option>-i
</option> <option>--ignore-install
</option> <option>--ignore-remove
</option>
262 <para>This option causes
<command>modprobe
</command> to
263 ignore
<command>install
</command> and
264 <command>remove
</command> commands in the
265 configuration file (if any) for the module specified on the
266 command line (any dependent modules are still subject
267 to commands set for them in the configuration file). Both
268 <command>install
</command> and
<command>remove
</command>
269 commands will currently be ignored when this option is used
270 regardless of whether the request was more specifically
271 made with only one or other (and not both) of
272 <option>--ignore-install
</option> or
273 <option>--ignore-remove
</option>.
275 <refentrytitle>modprobe.conf
</refentrytitle><manvolnum>5</manvolnum>
281 <term><option>-l
</option> <option>--list
</option>
284 <para>List all modules matching the given wildcard (or
"*"
285 if no wildcard is given). This option is provided for
286 backwards compatibility and may go away in future: see
288 <refentrytitle>find
</refentrytitle><manvolnum>1</manvolnum>
291 <refentrytitle>basename
</refentrytitle><manvolnum>1</manvolnum>
292 </citerefentry> for a more flexible alternative.
297 <term><option>-n
</option> <option>--dry-run
</option>
298 <option>--show
</option>
301 <para>This option does everything but actually insert or
302 delete the modules (or run the install or remove
303 commands). Combined with
<option>-v
</option>, it is
304 useful for debugging problems. For historical reasons
305 both
<option>--dry-run
</option> and
<option>--show
</option>
306 actually mean the same thing and are interchangeable.
311 <term><option>-q
</option> <option>--quiet
</option>
315 With this flag,
<command>modprobe
</command> won't print an error
316 message if you try to remove or insert a module it can't find (and
318 <command>install
</command>/
<command>remove
</command> command).
319 However, it will still return with a non-zero exit status. The
320 kernel uses this to opportunistically probe for modules which might
321 exist using request_module.
326 <term><option>-R
</option> <option>--resolve-alias
</option>
330 Print all module names matching an alias. This can be useful
331 for debugging module alias problems.
336 <term><option>-r
</option> <option>--remove
</option>
340 This option causes
<command>modprobe
</command> to remove
341 rather than insert a module. If the modules it depends on
342 are also unused,
<command>modprobe
</command> will try to
343 remove them too. Unlike insertion, more than one module
344 can be specified on the command line (it does not make
345 sense to specify module parameters when removing modules).
348 There is usually no reason to remove modules, but some
349 buggy modules require it. Your distribution kernel may not
350 have been built to support removal of modules at all.
355 <term><option>-S
</option> <option>--set-version
</option>
359 Set the kernel version, rather than using
360 <citerefentry><refentrytitle>uname
</refentrytitle><manvolnum>2</manvolnum></citerefentry> to decide on the kernel version (which dictates where to
366 <term><option>--show-depends
</option>
370 List the dependencies of a module (or alias), including
371 the module itself. This produces a (possibly empty) set
372 of module filenames, one per line, each starting with
373 "insmod" and is typically used by distributions to determine
374 which modules to include when generating initrd/initramfs images.
375 <command>Install
</command> commands which apply are shown prefixed by
376 "install". It does not run any of the install commands. Note that
377 <citerefentry><refentrytitle>modinfo
</refentrytitle><manvolnum>8</manvolnum></citerefentry>
378 can be used to extract dependencies of a module from the
379 module itself, but knows nothing of aliases or install commands.
384 <term><option>-s
</option> <option>--syslog
</option>
388 This option causes any error messages to go through the
389 syslog mechanism (as LOG_DAEMON with level LOG_NOTICE)
390 rather than to standard error. This is also automatically
391 enabled when stderr is unavailable.
394 This option is passed through
<command>install
</command>
395 or
<command>remove
</command> commands to other
396 <command>modprobe
</command> commands in the
397 MODPROBE_OPTIONS environment variable.
402 <term><option>-t
</option> <option>--type
</option>
405 <para>Restrict
<option>-l
</option> to modules
406 in directories matching the
407 <replaceable>dirname
</replaceable> given. This option
408 is provided for backwards compatibility and may go
411 <refentrytitle>find
</refentrytitle><manvolnum>1</manvolnum>
415 <refentrytitle>basename
</refentrytitle><manvolnum>1</manvolnum>
416 </citerefentry> for a more flexible alternative.
421 <term><option>-V
</option> <option>--version
</option>
424 <para>Show version of program and exit.
</para>
428 <term><option>-v
</option> <option>--verbose
</option>
432 Print messages about what the program is doing. Usually
433 <command>modprobe
</command> only prints messages if
434 something goes wrong.
437 This option is passed through
<command>install
</command>
438 or
<command>remove
</command> commands to other
439 <command>modprobe
</command> commands in the
440 MODPROBE_OPTIONS environment variable.
447 <title>ENVIRONMENT
</title>
449 The MODPROBE_OPTIONS environment variable can also be used to
450 pass arguments to
<command>modprobe
</command>.
454 <title>COPYRIGHT
</title>
456 This manual page originally Copyright
2002, Rusty Russell, IBM
457 Corporation. Maintained by Jon Masters and others.
461 <title>SEE ALSO
</title>
464 <refentrytitle>modprobe.conf
</refentrytitle><manvolnum>5</manvolnum>
467 <refentrytitle>modprobe.d
</refentrytitle><manvolnum>5</manvolnum>
470 <refentrytitle>insmod
</refentrytitle><manvolnum>8</manvolnum>
473 <refentrytitle>rmmod
</refentrytitle><manvolnum>8</manvolnum>
476 <refentrytitle>lsmod
</refentrytitle><manvolnum>8</manvolnum>
479 <refentrytitle>modinfo
</refentrytitle><manvolnum>8</manvolnum>
485 <!-- Keep this comment at the end of the file
490 sgml-minimize-attributes:nil
491 sgml-always-quote-attributes:t
494 sgml-parent-document:nil
495 sgml-default-dtd-file:nil
496 sgml-exposed-tags:nil
497 sgml-local-catalogs:nil
498 sgml-local-ecat-files:nil