02-22-2009
23,
0
Join Date: Oct 2008
Last Activity: 9 June 2009, 2:53 AM EDT
Posts: 23
Thanks Given: 0
Thanked 0 Times in 0 Posts
Doubts about timers in linux kernel
Hi ,
I am trying to learn timers in linux kernel. I am trying to write a program where I can configure a timer to tick in every 5 seconds and a function should thus exicute in every five seconds. I tried one program with the help of linux/timer.h headerfile but I couldnt get the delay right and my function exicutes only once.That is my timer acts like a single shot timer. How can I make the timer multi slot (not single slot , that is what I am trying to say), Plus How can I calculate the time delay in linux kernel. What is jiffies infact. What is the value of 1 jiffy in seconds . Hoping for help
Jayanth. S