[opensuse] Re: How to unload kernel module?
Josef Wolf a écrit :
Hello,
I'd like to debug a kernel module. For that, I want to unload the module that was loaded at boot. I remember in the old days, you could simply "modprobe -r modname" to get rid of it.
rmmod worked for me recently jdd -- http://www.dodin.net http://valerie.dodin.org http://www.youtube.com/watch?v=t-eic8MSSfM http://www.facebook.com/profile.php?id=1412160445 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Fri, Feb 20, 2009 at 05:57:28PM +0100, jdd wrote:
Josef Wolf a écrit :
Hello,
I'd like to debug a kernel module. For that, I want to unload the module that was loaded at boot. I remember in the old days, you could simply "modprobe -r modname" to get rid of it.
rmmod worked for me recently
Thanks for the quick answer. Unfortunately, rmmod will not remove the module because its use-count is still 1 although no applications are currently using /dev/dvb/*. raven:/ # lsof | grep /dev/dvb raven:/ # -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Friday 20 February 2009 11:37:14 Josef Wolf wrote:
Thanks for the quick answer. Unfortunately, rmmod will not remove the module because its use-count is still 1 although no applications are currently using /dev/dvb/*.
rmmod -f, but only if you are sure nothing it using it. It will get unloaded and if something tries to use it, you'll get a panic or worse. -- Boyd Stephen Smith Jr. ,= ,-_-. =. bss@iguanasuicide.net ((_/)o o(\_)) ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-' http://iguanasuicide.net/ \_/
participants (3)
-
Boyd Stephen Smith Jr.
-
jdd
-
Josef Wolf