blob: d9a6295b81325ef3ff377c933fb0b1b4fab2f79c [file] [log] [blame]
Lucas De Marchidfcb8aa2012-01-12 14:02:27 -02001<?xml version='1.0'?>
2<!--*-nxml-*-->
3<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
4 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
5<refentry id="rmmod">
6 <refentryinfo>
7 <title>rmmod</title>
8 <productname>kmod</productname>
9
10 <authorgroup>
11 <author>
12 <contrib>Developer</contrib>
13 <firstname>Jon</firstname>
14 <surname>Masters</surname>
15 <email>jcm@jonmasters.org</email>
16 </author>
17 <author>
18 <contrib>Developer</contrib>
19 <firstname>Lucas</firstname>
20 <surname>De Marchi</surname>
Lucas De Marchi2726da52014-01-02 17:13:38 -020021 <email>lucas.de.marchi@gmail.com</email>
Lucas De Marchidfcb8aa2012-01-12 14:02:27 -020022 </author>
23 </authorgroup>
24 </refentryinfo>
25
26 <refmeta>
27 <refentrytitle>rmmod</refentrytitle>
28 <manvolnum>8</manvolnum>
29 </refmeta>
30
31 <refnamediv>
32 <refname>rmmod</refname>
33 <refpurpose>
34 Simple program to remove a module from the Linux Kernel
35 </refpurpose>
36 </refnamediv>
37
38 <refsynopsisdiv>
39 <cmdsynopsis>
40 <command>rmmod</command>
41 <arg><option>-f</option></arg>
42 <arg><option>-w</option></arg>
43 <arg><option>-s</option></arg>
44 <arg><option>-v</option></arg>
45 <arg><replaceable>modulename</replaceable></arg>
46 </cmdsynopsis>
47 </refsynopsisdiv>
48
49 <refsect1><title>DESCRIPTION</title>
50 <para>
51 <command>rmmod</command> is a trivial program to remove a module (when
52 module unloading support is provided) from the kernel. Most users will
53 want to use
54 <citerefentry>
55 <refentrytitle>modprobe</refentrytitle><manvolnum>8</manvolnum>
56 </citerefentry> with the <option>-r</option> option instead.
57 </para>
58 </refsect1>
59
60 <refsect1><title>OPTIONS</title>
61 <variablelist>
62 <varlistentry>
Dave Reisner20770172012-07-25 19:52:20 -040063 <term>
64 <option>-v</option>
65 </term>
66 <term>
67 <option>--verbose</option>
Lucas De Marchidfcb8aa2012-01-12 14:02:27 -020068 </term>
69 <listitem>
70 <para>
71 Print messages about what the program is doing.
72 Usually <command>rmmod</command> prints messages
73 only if something goes wrong.
74 </para>
75 </listitem>
76 </varlistentry>
77 <varlistentry>
Dave Reisner20770172012-07-25 19:52:20 -040078 <term>
79 <option>-f</option>
80 </term>
81 <term>
82 <option>--force</option>
Lucas De Marchidfcb8aa2012-01-12 14:02:27 -020083 </term>
84 <listitem>
85 <para>
86 This option can be extremely dangerous: it has no effect unless
87 CONFIG_MODULE_FORCE_UNLOAD was set when the kernel was compiled.
88 With this option, you can remove modules which are being used, or
89 which are not designed to be removed, or have been marked as unsafe
90 (see <citerefentry>
91 <refentrytitle>lsmod</refentrytitle><manvolnum>8</manvolnum>
92 </citerefentry>).
93 </para>
94 </listitem>
95 </varlistentry>
96 <varlistentry>
97 <term><option>-w</option> <option>--wait</option>
98 </term>
99 <listitem>
100 <para>
101 Normally, <command>rmmod</command> will refuse to unload modules
102 which are in use. With this option, <command>rmmod</command> will
103 isolate the module, and wait until the module is no longer used.
104 Nothing new will be able to use the module, but it's up to you to
105 make sure the current users eventually finish with it. See
106 <citerefentry>
107 <refentrytitle>lsmod</refentrytitle><manvolnum>8</manvolnum>
108 </citerefentry>) for information on usage counts.
109 </para>
110 </listitem>
111 </varlistentry>
112 <varlistentry>
Dave Reisner20770172012-07-25 19:52:20 -0400113 <term>
114 <option>-s</option>
115 </term>
116 <term>
117 <option>--syslog</option>
Lucas De Marchidfcb8aa2012-01-12 14:02:27 -0200118 </term>
119 <listitem>
120 <para>
121 Send errors to syslog instead of standard error.
122 </para>
123 </listitem>
124 </varlistentry>
125 <varlistentry>
126 <term><option>-V</option> <option>--version</option>
127 </term>
128 <listitem>
129 <para>
130 Show version of program and exit.
131 </para>
132 </listitem>
133 </varlistentry>
134 </variablelist>
135 </refsect1>
136
137 <refsect1>
138 <title>COPYRIGHT</title>
139 <para>
140 This manual page originally Copyright 2002, Rusty Russell, IBM
141 Corporation. Maintained by Jon Masters and others.
142 </para>
143 </refsect1>
144
145 <refsect1><title>SEE ALSO</title>
146 <para>
147 <citerefentry>
148 <refentrytitle>modprobe</refentrytitle><manvolnum>8</manvolnum>
149 </citerefentry>,
150 <citerefentry>
151 <refentrytitle>insmod</refentrytitle><manvolnum>8</manvolnum>
152 </citerefentry>,
153 <citerefentry>
154 <refentrytitle>lsmod</refentrytitle><manvolnum>8</manvolnum>
155 </citerefentry>
156 <citerefentry>
157 <refentrytitle>modinfo</refentrytitle><manvolnum>8</manvolnum>
158 </citerefentry>
159 </para>
160 </refsect1>
161</refentry>