On Wed, May 26, 1999 at 03:57:53PM +0400, Hrach V. Asatryan wrote:
> 
>  Hi folks.
>  
>  I write driver for Sylink under Linux OS.
>  
>  How can I call periodic interrupt function(for example my kernel call
>  interrupt function every 5 seconds).
>  
>  Please write me
>  [EMAIL PROTECTED]
> 

You could use timers.
E.g.

static struct timer_list my_timer = { NULL, NULL, 0, 0, my_function };

my_timer.expires = jiffies+ticks;
add_timer(&my_timer);

This will make your function (my_function) to be called just once!! when
after ticks ticks. Then you could re-add timer to do it again and again.
This is easier than taking control over Timer 0 channel.
Of course there are other possibilities.

GL 73 de Ivo.

Reply via email to