Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 09-28-2004, 10:54 PM   #1
Registered: Sep 2003
Location: sydney
Distribution: Redhat 8.0
Posts: 36

Rep: Reputation: 15
forcefully unloading kernel module

hi guys;

i was wondering is there a way to forcefully unload a module.i have written this module and everytime i try to unload it (rmmod my_module),it says Device or resource busy.

any comments would be helpful.
Old 09-28-2004, 11:18 PM   #2
Registered: Sep 2003
Location: sydney
Distribution: Redhat 8.0
Posts: 36

Original Poster
Rep: Reputation: 15
also is there a way to find out wats keeping the module busy?i did an lsmod and it does not show any module using it
Old 09-29-2004, 02:04 AM   #3
Senior Member
Registered: Jan 2004
Location: Oregon, USA
Distribution: Slackware
Posts: 1,246

Rep: Reputation: 59
'man rmmod' turns up this:
       -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)).


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unloading an active driver module desertViking Linux - Wireless Networking 4 10-04-2005 10:39 PM
module loading and unloading NeoUz Linux - Newbie 1 03-26-2005 03:52 AM
Problems with module unloading support RuFI0 Linux - General 1 03-23-2005 05:28 PM
module unloading riseringseeker Mandriva 2 01-08-2005 03:41 PM
Unloading Module i810.o suriyamohan Linux - Software 3 05-30-2003 03:36 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:18 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration