March 23, 2023, 11:16:48 PM

News : Linux Help Community Forum..

Author Topic: periodic timer callbacks!!!!!  (Read 12971 times)

Offline sandeepvignesh

  • Linux Noob !
  • *
  • Posts: 7
periodic timer callbacks!!!!!
« 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; = 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.