Linux in General > Linux Kernel

periodic timer callbacks!!!!!

(1/1)

sandeepvignesh:
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.

Navigation

[0] Message Index

Go to full version