The HyperNews Linux KHG Discussion Pages

Timers Work...

Forum: The Linux Kernel Hackers' Guide
Re: Question Timers don't work?? (Joshua Liew)
Keywords: timer
Date: Wed, 03 Dec 1997 01:25:06 GMT
From: Balaji Srinivasan <>

The mistake with your code is that you need to
update INTERVAL every time you add_timer.
The expires field in timer_list is an absolute
time not a relative time.

for example:

irq() {
    timer.expires = jiffies + INTERVAL;