November 21, 2024, 03:59:19 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: periodic timer callbacks!!!!!  (Read 15822 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;
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.