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>rusty@rustcorp.com.au
</email>
18 <firstname>Rusty
</firstname>
19 <surname>Russell
</surname>
21 <date>2002-
12-
27</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>-o
</option> <replaceable>modulename
</replaceable></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>
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.
73 <command>modprobe
</command> looks in the module directory
74 <filename>/lib/modules/`uname -r`
</filename> for all
75 the modules and other files, except for the optional
76 <filename>/etc/modprobe.conf
</filename> configuration file and
77 <filename>/etc/modprobe.d
</filename> directory
79 <refentrytitle>modprobe.conf
</refentrytitle><manvolnum>5</manvolnum>
80 </citerefentry>).
<command>modprobe
</command> will also use module
81 options specified on the kernel command line in the form of
82 <module
>.
<option
>.
85 Note that this version of
<command>modprobe
</command> does not
86 do anything to the module itself: the work of resolving symbols
87 and understanding parameters is done inside the kernel. So
88 module failure is sometimes accompanied by a kernel message: see
90 <refentrytitle>dmesg
</refentrytitle><manvolnum>8</manvolnum>
94 <command>modprobe
</command> expects an up-to-date
95 <filename>modules.dep
</filename> file, as generated by
96 <command>depmod
</command> (see
<citerefentry>
97 <refentrytitle>depmod
</refentrytitle><manvolnum>8</manvolnum>
98 </citerefentry>). This file lists what other modules each
99 module needs (if any), and
<command>modprobe
</command> uses this
100 to add or remove these dependencies automatically. See
102 <refentrytitle>modules.dep
</refentrytitle><manvolnum>5</manvolnum>
106 If any arguments are given after the
107 <replaceable>modulename
</replaceable>, they are passed to the
108 kernel (in addition to any options listed in the configuration
113 <title>OPTIONS
</title>
116 <term><option>-v
</option> <option>--verbose
</option>
120 Print messages about what the program is doing. Usually
121 <command>modprobe
</command> only prints messages if
122 something goes wrong.
125 This option is passed through
<command>install
</command>
126 or
<command>remove
</command> commands to other
127 <command>modprobe
</command> commands in the
128 MODPROBE_OPTIONS environment variable.
133 <term><option>-C
</option> <option>--config
</option>
136 <para>This option overrides the default configuration file
137 (
<filename>/etc/modprobe.conf
</filename> or
138 <filename>/etc/modprobe.d/
</filename> if that isn't found).
141 This option is passed through
<command>install
</command>
142 or
<command>remove
</command> commands to other
143 <command>modprobe
</command> commands in the
144 MODPROBE_OPTIONS environment variable.
149 <term><option>-c
</option> <option>--showconfig
</option>
152 <para>Dump out the configuration file and exit.
157 <term><option>-n
</option> <option>--dry-run
</option>
160 <para>This option does everything but actually insert or
161 delete the modules (or run the install or remove
162 commands). Combined with
<option>-v
</option>, it is
163 useful for debugging problems.
168 <term><option>-i
</option> <option>--ignore-install
</option> <option>--ignore-remove
</option>
171 <para>This option causes
<command>modprobe
</command> to
172 ignore
<command>install
</command> and
173 <command>remove
</command> commands in the
174 configuration file (if any), for the module on the
175 command line (any dependent modules are still subject
176 to commands set for them in the configuration file).
178 <refentrytitle>modprobe.conf
</refentrytitle><manvolnum>5</manvolnum>
184 <term><option>-q
</option> <option>--quiet
</option>
188 Normally
<command>modprobe
</command> will report an error
189 if you try to remove or insert a module it can't find (and
191 <command>install
</command>/
<command>remove
</command>
192 command). With this flag,
<command>modprobe
</command>
193 will simply ignore any bogus names (the kernel uses this
194 to opportunistically probe for modules which might exist).
199 <term><option>-r
</option> <option>--remove
</option>
203 This option causes
<command>modprobe
</command> to remove,
204 rather than insert a module. If the modules it depends on
205 are also unused,
<command>modprobe
</command> will try to
206 remove them, too. Unlike insertion, more than one module
207 can be specified on the command line (it does not make
208 sense to specify module parameters when removing modules).
211 There is usually no reason to remove modules, but some
212 buggy modules require it. Your kernel may not support
218 <term><option>-w
</option> <option>--wait
</option>
222 This option is applicable only with the -r or --remove option.
223 It causes modprobe to block in the kernel (within the kernel
224 module handling code itself) waiting for the specified modules'
225 reference count to reach zero. Default operation is for modprobe
226 to operate like rmmod, which exits with EWOULDBLOCK if the
227 modules reference count is non-zero.
232 <term><option>-V
</option> <option>--version
</option>
235 <para>Show version of program, and exit. See below for caveats when run on older kernels.
</para>
239 <term><option>-f
</option> <option>--force
</option>
243 Try to strip any versioning information from the module,
244 which might otherwise stop it from loading: this is the
245 same as using both
<option>--force-vermagic
</option> and
246 <option>--force-modversion
</option>. Naturally, these
247 checks are there for your protection, so using this option
251 This applies to any modules inserted: both the module (or
252 alias) on the command line, and any modules it depends on.
257 <term><option>--force-vermagic
</option>
261 Every module contains a small string containing important
262 information, such as the kernel and compiler versions. If
263 a module fails to load and the kernel complains that the
264 "version magic" doesn't match, you can use this option to
265 remove it. Naturally, this check is there for your
266 protection, so this using option is dangerous.
269 This applies to any modules inserted: both the module (or
270 alias) on the command line, and any modules it depends on.
275 <term><option>--force-modversion
</option>
279 When modules are compiled with CONFIG_MODVERSIONS set, a
280 section is created detailing the versions of every
281 interface used by (or supplied by) the module. If a
282 module fails to load and the kernel complains that the
283 module disagrees about a version of some interface, you
284 can use
"--force-modversion" to remove the version
285 information altogether. Naturally, this check is there
286 for your protection, so using this option is dangerous.
289 This applies any modules inserted: both the module (or
290 alias) on the command line, and any modules it depends on.
295 <term><option>-l
</option> <option>--list
</option>
298 <para>List all modules matching the given wildcard (or
"*"
299 if no wildcard is given). This option is provided for
300 backwards compatibility: see
302 <refentrytitle>find
</refentrytitle><manvolnum>1</manvolnum>
305 <refentrytitle>basename
</refentrytitle><manvolnum>1</manvolnum>
306 </citerefentry> for a more flexible alternative.
311 <term><option>-a
</option> <option>--all
</option>
314 <para>Insert all module names on the command line.
319 <term><option>-t
</option> <option>--type
</option>
322 <para>Restrict
<option>-l
</option> to modules
323 in directories matching the
324 <replaceable>dirname
</replaceable> given. This option
325 is provided for backwards compatibility: see
327 <refentrytitle>find
</refentrytitle><manvolnum>1</manvolnum>
331 <refentrytitle>basename
</refentrytitle><manvolnum>1</manvolnum>
332 </citerefentry> or a more flexible alternative.
337 <term><option>-s
</option> <option>--syslog
</option>
341 This option causes any error messages to go through the
342 syslog mechanism (as LOG_DAEMON with level LOG_NOTICE)
343 rather than to standard error. This is also automatically
344 enabled when stderr is unavailable.
347 This option is passed through
<command>install
</command>
348 or
<command>remove
</command> commands to other
349 <command>modprobe
</command> commands in the
350 MODPROBE_OPTIONS environment variable.
355 <term><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
361 find the modules). This also disables backwards
362 compatibility checks (so
364 <refentrytitle>modprobe.old
</refentrytitle><manvolnum>8</manvolnum></citerefentry> will never be run).
369 <term><option>--show-depends
</option>
373 List the dependencies of a module (or alias), including
374 the module itself. This produces a (possibly empty) set
375 of module filenames, one per line, each starting with
376 "insmod". Install commands which apply are shown prefixed by
377 "install". It does not run any of the install commands. Note that
378 <citerefentry><refentrytitle>modinfo
</refentrytitle><manvolnum>8</manvolnum></citerefentry>
379 can be used to extract dependencies of a module from the
380 module itself, but knows nothing of aliases or install commands.
385 <term><option>-o
</option> <option>--name
</option>
389 This option tries to rename the module which is being
390 inserted into the kernel. Some testing modules can
391 usefully be inserted multiple times, but the kernel
392 refuses to have two modules of the same name. Normally,
393 modules should not require multiple insertions, as that
394 would make them useless if there were no module support.
399 <term><option>--first-time
</option>
403 Normally,
<command>modprobe
</command> will succeed (and do
404 nothing) if told to insert a module which is already
405 present, or remove a module which isn't present. This is
406 backwards compatible with the modutils, and ideal for
407 simple scripts. However, more complicated scripts often
408 want to know whether
<command>modprobe
</command> really
409 did something: this option makes modprobe fail for that
415 <term><option>--dump-modversions
</option>
419 Print out a list of module versioning information required by a
420 module. This option is commonly used by distributions in order to
421 package up a Linuxx kernel module using module versioning deps.
426 <term><option>--use-blacklist
</option>
430 This option causes
<command>modprobe
</command> to apply the
431 <command>blacklist
</command> commands in the configuration file (if
432 any) to module names as well. It is usually used by
<citerefentry>
433 <refentrytitle>udev
</refentrytitle><manvolnum>7</manvolnum>
441 <title>BACKWARDS COMPATIBILITY
</title>
444 This version of
<command>modprobe
</command> is for kernels
445 <literal>2.5.48</literal> and above. If it detects a kernel
446 with support for old-style modules (for which much of the work
447 was done in userspace), it will attempt to run
448 <command>modprobe.old
</command> in its place, so it is
449 completely transparent to the user.
453 <title>ENVIRONMENT
</title>
455 The MODPROBE_OPTIONS environment variable can also be used to
456 pass arguments to
<command>modprobe
</command>.
460 <title>COPYRIGHT
</title>
462 This manual page Copyright
2002, Rusty Russell, IBM Corporation.
466 <title>SEE ALSO
</title>
469 <refentrytitle>modprobe.conf
</refentrytitle><manvolnum>5</manvolnum>
472 <refentrytitle>lsmod
</refentrytitle><manvolnum>8</manvolnum>
475 <refentrytitle>modprobe.old
</refentrytitle><manvolnum>8</manvolnum>
481 <!-- Keep this comment at the end of the file
486 sgml-minimize-attributes:nil
487 sgml-always-quote-attributes:t
490 sgml-parent-document:nil
491 sgml-default-dtd-file:nil
492 sgml-exposed-tags:nil
493 sgml-local-catalogs:nil
494 sgml-local-ecat-files:nil