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 08:59 +0530, Abu M. Muttalib wrote:
> Hi Arjan,
> 
> Thanks again.
> 
> I guess you defined the function modify_timer to return void and you have run the driver only once. 

I ran it several times, at least the echo you said

I did not unload and then reload the driver;
if you do that to get the oops then yes you need to do del_timer_sync()
before the unload!

(and you need the _sync version, not just the regular del_timer()
because you want to be really sure that the timer is finished before the
module goes away)


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