Re: How to unload a module using rmmod when the module occur error.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Mandeep Singh Sandhu wrote:
> 
> what kernel version are you using?
> 
> if it's 2.5 or higher u can use the -f (force) option to remove
> it, but if ur using a 2.4 or lower ver. then i'm afraid rebooting
> is the only option!
> 
> - /dev/mandeep
> 
> -----Original Message-----
> From: kernelnewbies-bounce@nl.linux.org [mailto:kernelnewbies-bounce@nl.linux.org]On Behalf Of YANG KWCH
> Sent: Monday, May 17, 2004 11:52 AM
> To: kernelnewbies@nl.linux.org
> Subject: How to unload a module using rmmod when the module occur error.
> 
> Hello everyone, I am a newbie. I write a kernel module
> to get IPv6 packet from netlink layer with RAW socket,
> and I refer to the kernel network tap code, but when I
> load the module it print some debug message. I cannot
> use rmmod to remove the module and cannot load it
> again.There is a way to unload it? Don't tell me to
> reboot it.^_^Thank you for help!
> 

i guess there is a way out , but dont know the side effects ;-), but worked for me without any probs.
i wrote a module , insmod'ed it , it had simple code to go thru the module list, and decrement the module's count
(whichever module u wanted to remove) to 0, then i could rmmod it ,i.e assuming that the module isnt rmmod'able because
its MODULE_COUNT wasnt zero.Hope iam answering the right question.Please, feel free to correct me,if iam wrong.


cheers,
Amith

PS: Kernel ver : 2.4-18.

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux