The HyperNews Linux KHG Discussion Pages
Next-in-Thread Next Message Previous Message Next Thread

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 <balaji@hegel.ittc.ukans.edu>

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;
    add_timer(&timer);
}

Next-in-Thread Next Message Previous Message Next Thread

to: "Timers Work..."

Subscribe Membership Move/Remove Admin Mode Show Frames Help for HyperNews 1.9.4