mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: sebastien person <sebastien.person@sycomore.fr>
To: liste noyau linux <linux-kernel@vger.kernel.org>
Subject: [newbie] timer in module
Date: Fri, 18 May 2001 13:54:41 +0200	[thread overview]
Message-ID: <20010518135441.59bab0ce.sebastien.person@sycomore.fr> (raw)

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 specific to device
}

but I'm scared that will block the driver.
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).

Is it better to let an external program executing timer call and get data
call
via ioctl ?

In the case of a network module wich is able to send and receive data,
whats happen if the driver is sollicited when he received or send data ?
the tbusy bit is it designed to avoid this case ?

The module is it able to execute two different parts of the module code
at the same time ? (receiving data and handle a higher layer request)

thanks for any comments.

sebastien person

             reply	other threads:[~2001-05-18 11:57 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-18 11:54 sebastien person [this message]
2001-05-18 12:32 ` Bart Trojanowski
2001-05-18 12:43 ` Alan Cox
2001-05-18 13:28 ` sebastien person
2001-05-18 13:53   ` Alan Cox
2001-05-18 13:33 ` sebastien person
2001-05-18 13:54   ` Richard B. Johnson
2001-05-22 10:53 sebastien person

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010518135441.59bab0ce.sebastien.person@sycomore.fr \
    --to=sebastien.person@sycomore.fr \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®