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
> > 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
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
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
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
> 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,
>
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
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
8 matches
Mail list logo