[lkml]   [2001]   [May]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject[newbie] timer in module

Début du message transféré :

Date: Tue, 22 May 2001 11:39:30 +0200
From: sebastien person <>
To: Bart Trojanowski <>
Subject: Re: [newbie] timer in module (fwd)

Le Mon, 21 May 2001 19:35:25 -0400 (EDT)
Bart Trojanowski <> 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

thanks for all your advices.

> Bart.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:53    [W:0.026 / U:0.096 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site