Another way is to set the module use count to zero before unloading the
module. When you do this you can always unload the module, and lsmod
will still get you the correct number. Clearly you should only use this
for debugging.

Willem


Bas Kruiderink wrote:
> 
> Hello,
> 
> Can someone tell me how to 'force' a module to unload? When debugging my
> rt-application the application somtimes crashes. This leaves the
> rt-modules loaded and somtimes used. When (for example) the mbuff module
> is not removed, I have to do a complete reboot to try again.
> I know this may cause stability problems, but it would speed up the
> debugging!
> Anyone have an idea how to solve this, rmmod does not work (says module
> is in use), lsmod also shows module is used.
> 
> Greetings,
> Bas Kruiderink.
> 
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
> ---
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/rtlinux/


-- 
    ~~
Willem J. Atsma   -    [EMAIL PROTECTED]
url: http://www.mech.ubc.ca/~watsma
  ~~
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/

Reply via email to