| 1 |
RMMOD(8) "kmod" "rmmod" |
| 2 |
|
| 3 |
# NAME |
| 4 |
|
| 5 |
rmmod - Simple program to remove a module from the Linux Kernel |
| 6 |
|
| 7 |
# SYNOPSIS |
| 8 |
|
| 9 |
*rmmod* [_OPTIONS_] [_list of modulenames_] |
| 10 |
|
| 11 |
# DESCRIPTION |
| 12 |
|
| 13 |
*rmmod* is a trivial program to remove a module or a list of modules from the |
| 14 |
kernel (when module unloading support is provided). Most users will want to use |
| 15 |
*modprobe*(8) with the *-r* option instead since it removes unused dependent |
| 16 |
modules as well. |
| 17 |
|
| 18 |
When a list of modules is provided, the program will process them one at a time. |
| 19 |
If a module is not found, *rmmod* will immediately exit with an error code. |
| 20 |
Should the module removal fail, the program will log an error AND continue with |
| 21 |
the next module. This behaviour is NOT controlled by the *--force* option. |
| 22 |
|
| 23 |
# OPTIONS |
| 24 |
|
| 25 |
*-f*, *--force* |
| 26 |
This option can be extremely dangerous: it has no effect unless |
| 27 |
CONFIG_MODULE_FORCE_UNLOAD was set when the kernel was compiled. With |
| 28 |
this option, you can remove modules which are being used, or which are |
| 29 |
not designed to be removed, or have been marked as unsafe (see *lsmod*(8)). |
| 30 |
|
| 31 |
*-s*, *--syslog* |
| 32 |
Send errors to syslog instead of standard error. |
| 33 |
|
| 34 |
*-v*, *--verbose* |
| 35 |
Print messages about what the program is doing. Usually *rmmod* prints |
| 36 |
messages only if something goes wrong. |
| 37 |
|
| 38 |
*-V*, *--version* |
| 39 |
Show version of program and exit. |
| 40 |
|
| 41 |
*-h*, *--help* |
| 42 |
Print the help message and exit. |
| 43 |
|
| 44 |
# COPYRIGHT |
| 45 |
|
| 46 |
This manual page originally Copyright 2002, Rusty Russell, IBM Corporation. |
| 47 |
|
| 48 |
# SEE ALSO |
| 49 |
|
| 50 |
*modprobe*(8), *insmod*(8), *lsmod*(8), *modinfo*(8), *depmod*(8) |
| 51 |
|
| 52 |
# BUGS |
| 53 |
|
| 54 |
Please direct any bug reports to kmod's issue tracker at |
| 55 |
https://github.com/kmod-project/kmod/issues/ alongside with version used, steps |
| 56 |
to reproduce the problem and the expected outcome. |
| 57 |
|
| 58 |
# AUTHORS |
| 59 |
|
| 60 |
Numerous contributions have come from the linux-modules mailing list |
| 61 |
<[email protected]> and Github. If you have a clone of kmod.git |
| 62 |
itself, the output of *git-shortlog*(1) and *git-blame*(1) can show you the |
| 63 |
authors for specific parts of the project. |
| 64 |
|
| 65 |
*Lucas De Marchi* <[email protected]> is the current maintainer of the |
| 66 |
project. |