Re: How to unload a buggy LKM without rebooting

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

 




From: "KONG, Gangfeng" <gkong@IPRG.nokia.com>:
> Hi,
> 
> I am debugging a kernel module. Any error in it is easy to make
> the module unloadable ( complaining: Device or resource busy).
> Is there anyway to unload a sick LKM without rebooting?
> 
> Thanks
> GF
> 
When u r developing the module, dont use 
MOD_INC_USE_COUNT and DEC counts.

When ur application crashes, it wont complain about
module being busy. 

Once ur module is entirely tested, u keep these
in open and closes.

However this is not a solution if ur module itself 
has some bugs and lets say crashes during 
init_module().

How do we cleanup such things ??? 


-nagaraj

\(*_*)/

 

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