[newbie] timer in module

2001-05-22 Thread sebastien person
Début du message transféré : Date: Tue, 22 May 2001 11:39:30 +0200 From: sebastien person <[EMAIL PROTECTED]> To: Bart Trojanowski <[EMAIL PROTECTED]> Subject: Re: [newbie] timer in module (fwd) Le Mon, 21 May 2001 19:35:25 -0400 (EDT) Bart Trojanowski <[EMAIL PROT

Re: [newbie] timer in module

2001-05-18 Thread Alan Cox
> > Your timer is like an interrupt (in fact it runs from one) so you will > need > > to lock it against transmit, receive, multicast list loads and get_stats > > all of which can happen at the same time. > > So I must disable interrupt when I handle another function like receive > etc ... That

Re: [newbie] timer in module

2001-05-18 Thread Richard B. Johnson
On Fri, 18 May 2001, sebastien person wrote: > Le Fri, 18 May 2001 08:32:33 -0400 (EDT) > Bart Trojanowski <[EMAIL PROTECTED]> a ecrit : > > > On Fri, 18 May 2001, sebastien person wrote: > > > > > I have a network module that need to regularly get data from network > > > adaptater. > > > But I

Re: [newbie] timer in module

2001-05-18 Thread sebastien person
Le Fri, 18 May 2001 08:32:33 -0400 (EDT) Bart Trojanowski <[EMAIL PROTECTED]> a ecrit : > On Fri, 18 May 2001, sebastien person wrote: > > > I have a network module that need to regularly get data from network > > adaptater. > > But I don't know if it safe to do a loop with a timer in the module

Re: [newbie] timer in module

2001-05-18 Thread sebastien person
Le Fri, 18 May 2001 13:43:21 +0100 (BST) Alan Cox <[EMAIL PROTECTED]> a ecrit : > > I've no experience of a regularly call that let the hand to the module. > > My aim is to do a get data call every x seconds (x is variable). > > init_timer() > add_timer() > del_timer() > > are

Re: [newbie] timer in module

2001-05-18 Thread Alan Cox
> I've no experience of a regularly call that let the hand to the module. > My aim is to do a get data call every x seconds (x is variable). init_timer() add_timer() del_timer() are your frinnds. > In the case of a network module wich is able to send and receive data, >

Re: [newbie] timer in module

2001-05-18 Thread Bart Trojanowski
On Fri, 18 May 2001, sebastien person wrote: > I have a network module that need to regularly get data from network > adaptater. > But I don't know if it safe to do a loop with a timer in the module. First off you have to decide where you want to run your 'get data'. There are three context you

[newbie] timer in module

2001-05-18 Thread sebastien person
Hi, I have a network module that need to regularly get data from network adaptater. But I don't know if it safe to do a loop with a timer in the module. e.g. I want to do something like that after ifconfig call : while(1) { timer call() get data() // these datas are spe