Messages in this thread | | | Date | Tue, 22 May 2001 12:53:51 +0200 | From | sebastien person <> | Subject | [newbie] timer in module |
| |
Début du message transféré :
Date: Tue, 22 May 2001 11:39:30 +0200 From: sebastien person <sebastien.person@sycomore.fr> To: Bart Trojanowski <bart@jukie.net> Subject: Re: [newbie] timer in module (fwd)
Le Mon, 21 May 2001 19:35:25 -0400 (EDT) Bart Trojanowski <bart@jukie.net> a ecrit :
> > this was my first post on this thread. > > I did miss one call and that was add_timer(), after that you can call > mod_timer to change the next time the timer fires.
ok, to using mod_timer we must hace already used one time add_timer ?
> Let me know if you need anything else.
So I've succeed to use a timer but with the struct timer_list. I've found some example in rubini's book [oreilly], but I'm not sure if the declaration of timer must be global ? e.g If I do a timer call in a local function, whith a timer_list struct local, and when the scheduler handle the timer interrupt although I am already out of local function... what's happen (oops ?)
And also I want to ensure that I can put whatever I want in the data field.
thanks for all your advices.
> > Bart. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |