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>rmmod
</refentrytitle>
25 <manvolnum>8</manvolnum>
28 <refname>rmmod
</refname> <refpurpose>simple program to remove a module from the Linux Kernel
</refpurpose>
32 <command>rmmod
</command>
33 <arg><option>-f
</option></arg>
34 <arg><option>-w
</option></arg>
35 <arg><option>-s
</option></arg>
36 <arg><option>-v
</option></arg>
37 <arg><replaceable>modulename
</replaceable></arg>
41 <title>DESCRIPTION
</title>
43 <para><command>rmmod
</command> is a trivial program to remove a
44 module from the kernel. Most users will want to use
46 <refentrytitle>modprobe
</refentrytitle><manvolnum>8</manvolnum>
47 </citerefentry> instead, with the
<option>-r
</option> option.
51 <title>OPTIONS
</title>
54 <term><option>-v
</option> <option>--verbose
</option>
58 Print messages about what the program is doing.
59 Usually
<command>rmmod
</command> only prints messages
60 if something goes wrong.
65 <term><option>-f
</option> <option>--force
</option>
69 This option can be extremely dangerous: it has no effect unless
70 CONFIG_MODULE_FORCE_UNLOAD was set when the kernel was
71 compiled. With this option, you can remove modules which are
72 being used, or which are not designed to be removed, or have
73 been marked as unsafe (see
<citerefentry>
74 <refentrytitle>lsmod
</refentrytitle><manvolnum>8</manvolnum>
80 <term><option>-w
</option> <option>--wait
</option>
84 Normally,
<command>rmmod
</command> will refuse to
85 unload modules which are in use. With this option,
86 <command>rmmod
</command> will isolate the module, and
87 wait until the module is no longer used. Noone new
88 will be able to use the module, but it's up to you to
89 make sure the current users eventually finish with it.
91 <refentrytitle>lsmod
</refentrytitle><manvolnum>8</manvolnum>
92 </citerefentry>) for information on usage counts.
97 <term><option>-s
</option> <option>--syslog
</option>
101 Send errors to the syslog, instead of standard error.
106 <term><option>-V
</option> <option>--version
</option>
110 Show version of program, and exit. See below for caveats
111 when run on older kernels.
118 <title>BACKWARDS COMPATIBILITY
</title>
121 This version of
<command>rmmod
</command> is for kernels
122 <literal>2.5.48</literal> and above. If it detects a kernel
123 with support for old-style modules (for which much of the work
124 was done in userspace), it will attempt to run
125 <command>rmmod.old
</command> in its place, so it is completely
126 transparent to the user.
130 <title>COPYRIGHT
</title>
132 This manual page Copyright
2002, Rusty Russell, IBM Corporation.
136 <title>SEE ALSO
</title>
140 <refentrytitle>modprobe
</refentrytitle><manvolnum>8</manvolnum>
143 <refentrytitle>insmod
</refentrytitle><manvolnum>8</manvolnum>
146 <refentrytitle>lsmod
</refentrytitle><manvolnum>8</manvolnum>
149 <refentrytitle>rmmod.old
</refentrytitle><manvolnum>8</manvolnum>
155 <!-- Keep this comment at the end of the file
160 sgml-minimize-attributes:nil
161 sgml-always-quote-attributes:t
164 sgml-parent-document:nil
165 sgml-default-dtd-file:nil
166 sgml-exposed-tags:nil
167 sgml-local-catalogs:nil
168 sgml-local-ecat-files:nil