Linux Forums - Linux Help,Advice & support community:LinuxSolved.com

Linux in General => Linux Kernel => Topic started by: sandeepvignesh on June 04, 2009, 03:57:23 AM

Title: periodic timer callbacks!!!!!
Post by: sandeepvignesh on June 04, 2009, 03:57:23 AM
Hi,I am quite new to this community,could some one please help me out regarding this

issue. This is a sample code in kernel space.

struct timer_list mytimer;
init_timer (&mytimer);
mytimer.expires = jiffies + HZ/1000;
mytimer.data = 0/*or the pointer that pointing to your argument*/;
mytimer.function = /*your expireing function*/
add_timer (&mytimer);

Can any one of you plz suggest a way to implement this in user space in Linux? Thanks in

advance. And we need timer resolution of 1 ms.