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]

 



 --- Amith <amith@multitech.co.in> 的正文:> 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. 
I think it's a best solution, but why linus don't add
a option to force to remove the kernel module for a
kernel programmer?

_________________________________________________________
Do You Yahoo!? 
嫌邮箱太小?雅虎电邮自助扩容!
http://cn.rd.yahoo.com/mail_cn/tag/10m/*http://cn.mail.yahoo.com/event/10m.html

--
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