RE: Periodic event in Kernel Module

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

 



> >> This is exactly what I need. add_timer() calling function X in the
> > init
> >> and then add_timer() in function X.
> >>
> >
> >
> > No, I believe you want to do add_timer() calling function X in the
init
> > and then mod_timer() in function X (or del_timer() if your
finished).
> 
> I based my statement on the code for kbleds.c at:
> http://www.tldp.org/LDP/lkmpg/2.6/html/lkmpg.html
> 

My bad.  I agree, that will work.

As Nish says they both call __mod_timer() in the end.
 

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