RE: Timer manipulation in 2.6.13

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

 



On Sun, 2006-02-26 at 09:48 +0530, Abu M. Muttalib wrote:
> Hi,
> 
> I did del_timer only before closing the device file and there was no OOPS.
> Is it necessary to do del_timer(_sync) before closing the device/ unloading
> the device?

before unloading the module, the del_timer needs to have happened. If
you do it in the actual unload or in the close shouldn't matter much; it
depends really on what you want. Since you set the timer in open,
removing it in close makes sense for symmetry reasons ;)



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