Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

rmmod(8) [linux man page]

rmmod(8)						      System Manager's Manual							  rmmod(8)

NAME
rmmod -- simple program to remove a module from the Linux Kernel SYNOPSIS
rmmod [-f] [-w] [-s] [-v] [modulename] DESCRIPTION
rmmod is a trivial program to remove a module (when module unloading support is provided) from the kernel. Most users will want to use modprobe(8) with the -r option instead. OPTIONS
-v --verbose Print messages about what the program is doing. Usually rmmod prints messages only if something goes wrong. -f --force This option can be extremely dangerous: it has no effect unless CONFIG_MODULE_FORCE_UNLOAD was set when the kernel was compiled. With this option, you can remove modules which are being used, or which are not designed to be removed, or have been marked as unsafe (see lsmod(8)). -w --wait Normally, rmmod will refuse to unload modules which are in use. With this option, rmmod will isolate the module, and wait until the module is no longer used. Nothing new will be able to use the module, but it's up to you to make sure the current users eventually finish with it. See lsmod(8)) for information on usage counts. -s --syslog Send errors to syslog instead of standard error. -V --version Show version of program and exit. COPYRIGHT
This manual page originally Copyright 2002, Rusty Russell, IBM Corporation. Maintained by Jon Masters and others. SEE ALSO
modprobe(8), insmod(8), lsmod(8) modinfo(8) rmmod(8)

Check Out this Related Man Page

RMMOD(8)																  RMMOD(8)

NAME
rmmod - simple program to remove a module from the Linux Kernel SYNOPSIS
rmmod [ -f ] [ -w ] [ -s ] [ -v ] [ modulename ] DESCRIPTION
rmmod is a trivial program to remove a module (when module unloading support is provided) from the kernel. Most users will want to use modprobe(8) with the -r option instead. OPTIONS
-v --verbose Print messages about what the program is doing. Usually rmmod prints messages only if something goes wrong. -f --force This option can be extremely dangerous: it has no effect unless CONFIG_MODULE_FORCE_UNLOAD was set when the kernel was compiled. With this option, you can remove modules which are being used, or which are not designed to be removed, or have been marked as unsafe (see lsmod(8)). -w --wait Normally, rmmod will refuse to unload modules which are in use. With this option, rmmod will isolate the module, and wait until the module is no longer used. Nothing new will be able to use the module, but it's up to you to make sure the current users eventually finish with it. See lsmod(8)) for information on usage counts. -s --syslog Send errors to syslog instead of standard error. -V --version Show version of program and exit. COPYRIGHT
This manual page originally Copyright 2002, Rusty Russell, IBM Corporation. Maintained by Jon Masters and others. SEE ALSO
modprobe(8), insmod(8), lsmod(8) modinfo(8) 2010-03-01 RMMOD(8)
Man Page

9 More Discussions You Might Find Interesting

1. Programming

wait system call

hi there, i had some trivial questions about this program here. i am kinda confused with these, hope you can help me to understand here. :) #include<stdio.h> #include<sys/wait.h> #include<sys/types.h> #include<unistd.h> int main(void) { int... (2 Replies)
Discussion started by: a25khan
2 Replies

2. IP Networking

insmod: a module named e1000 already exists

Hi I'm trying to change the configuration of the adapter, especially values revelant with Tx and Rx. Following appropiate manual i tried insmod command , but as a result i've got: insmod: a module named e1000 already exists Does anyone know the solution? (0 Replies)
Discussion started by: admart
0 Replies

3. Ubuntu

how can insertion of one module deletesother modules

Masters, I have inserted a linux module which controlls the bandwidth of LAN . Just when I insmod'ed kernel panicked. When restarted I am stunned to find out that many of my other modules are missing. How can insertion of one module removes other modules . I use 2.6.9 kernel on a redhat 3.4.3... (1 Reply)
Discussion started by: iamjayanth
1 Replies

4. BSD

BSD equivalent of rmmod

In Linux if you want to get rid of the PC speaker (beep!) without rebooting you can type rmmod pcspkr I'm looking for a way to remove (if possible) the BSD equivalent of the "pcspkr" module. I scrolled quickly through GENERIC and didn't see any entries that looked conspicuously like the... (2 Replies)
Discussion started by: uiop44
2 Replies

5. Linux

How to trace the module after system freeze?

Hi, I wrote a kernel module that did a virtual network protocol and library that provide interface for application use to interact with the kernel module by ioctl actions. insmod the module and unload the module, there will be no problem. But once I call the library with my example... (0 Replies)
Discussion started by: a2156z
0 Replies

6. Red Hat

modprobe: Can't locate module usbcore

Hello Linux forum! I am working on an older Red hat Linux version(kernel) 2.4.21 and I have compiled the kernel and I select it on startup, but I get the following errors: Mounting Local Filesystems: Modprobe: modprobe: Can't locate module usbcore modprobe: modprobe: Can't locate module udf... (1 Reply)
Discussion started by: mr.rhtuner
1 Replies

7. Programming

Need program to continue even when encountering errors

I am writing a program, and want to have the option for the program to continue execution even should things go wrong. I use an option --ignore-errors. The problem is what I do when an error occurs, set the values to zero, or fill them up with some values, for example taken from a simple unit... (3 Replies)
Discussion started by: kristinu
3 Replies

8. UNIX for Advanced & Expert Users

Rmmod,modprobe or dracut?

I am making few changes inside modprobe.d directory, now there are two options to make them effective 1) rmmod module, make changes and modprobe module 2) dracut -f I was wondering what's the difference between two, in terms of result, dracut makes kernel image again though and the other unplug... (0 Replies)
Discussion started by: nixhead
0 Replies

9. IP Networking

Insmod custom module fails with message : disagrees about version of symbol ...

Hello : I want to make a netfilter conntrack module for myself. So I copy all the source code about netfilter conntrack from kernel source tree to my external directory. It can be insmod after compiled. Then I add some members to the struct nf_conn, and it 's compiled successfully. However, it... (1 Reply)
Discussion started by: 915086731
1 Replies