• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?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>
21        <email>lucas.de.marchi@gmail.com</email>
22      </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>-s</option></arg>
43      <arg><option>-v</option></arg>
44      <arg><replaceable>modulename</replaceable></arg>
45    </cmdsynopsis>
46  </refsynopsisdiv>
47
48  <refsect1><title>DESCRIPTION</title>
49    <para>
50      <command>rmmod</command> is a trivial program to remove a module (when
51      module unloading support is provided) from the kernel.  Most users will
52      want to use
53      <citerefentry>
54        <refentrytitle>modprobe</refentrytitle><manvolnum>8</manvolnum>
55      </citerefentry> with the <option>-r</option> option instead.
56    </para>
57  </refsect1>
58
59  <refsect1><title>OPTIONS</title>
60    <variablelist>
61      <varlistentry>
62        <term>
63          <option>-v</option>
64        </term>
65        <term>
66          <option>--verbose</option>
67        </term>
68        <listitem>
69          <para>
70            Print messages about what the program is doing.
71            Usually <command>rmmod</command> prints messages
72            only if something goes wrong.
73          </para>
74        </listitem>
75      </varlistentry>
76      <varlistentry>
77        <term>
78          <option>-f</option>
79        </term>
80        <term>
81          <option>--force</option>
82        </term>
83        <listitem>
84          <para>
85            This option can be extremely dangerous: it has no effect unless
86            CONFIG_MODULE_FORCE_UNLOAD was set when the kernel was compiled.
87            With this option, you can remove modules which are being used, or
88            which are not designed to be removed, or have been marked as unsafe
89            (see <citerefentry>
90              <refentrytitle>lsmod</refentrytitle><manvolnum>8</manvolnum>
91            </citerefentry>).
92          </para>
93        </listitem>
94      </varlistentry>
95      <varlistentry>
96        <term>
97          <option>-s</option>
98        </term>
99        <term>
100          <option>--syslog</option>
101        </term>
102        <listitem>
103          <para>
104            Send errors to syslog instead of standard error.
105          </para>
106        </listitem>
107      </varlistentry>
108      <varlistentry>
109        <term><option>-V</option> <option>--version</option>
110        </term>
111        <listitem>
112          <para>
113            Show version of program and exit.
114          </para>
115        </listitem>
116      </varlistentry>
117    </variablelist>
118  </refsect1>
119
120  <refsect1>
121    <title>COPYRIGHT</title>
122    <para>
123      This manual page originally Copyright 2002, Rusty Russell, IBM
124      Corporation. Maintained by Jon Masters and others.
125    </para>
126  </refsect1>
127
128  <refsect1><title>SEE ALSO</title>
129    <para>
130      <citerefentry>
131        <refentrytitle>modprobe</refentrytitle><manvolnum>8</manvolnum>
132      </citerefentry>,
133      <citerefentry>
134        <refentrytitle>insmod</refentrytitle><manvolnum>8</manvolnum>
135      </citerefentry>,
136      <citerefentry>
137        <refentrytitle>lsmod</refentrytitle><manvolnum>8</manvolnum>
138      </citerefentry>,
139      <citerefentry>
140        <refentrytitle>modinfo</refentrytitle><manvolnum>8</manvolnum>
141      </citerefentry>
142      <citerefentry>
143        <refentrytitle>depmod</refentrytitle><manvolnum>8</manvolnum>
144      </citerefentry>
145    </para>
146  </refsect1>
147</refentry>
148