From: Pete Zaitcev <zaitcev@redhat.com>
To: Amol Kumar Lad <amolk@ishoni.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: kernel notification to user space task
Date: Fri, 29 Mar 2002 12:27:18 -0500 [thread overview]
Message-ID: <200203291727.g2THRIM01125@devserv.devel.redhat.com> (raw)
In-Reply-To: <mailman.1017422340.6661.linux-kernel2news@redhat.com>
> I want my driver running in kernel to send a notification to this task when
> it detects some event.
>
> for example..if my driver detects that interface 'eth0' is coming up, it
> should send a indication to user task saying 'network interface eth0 is up'
I think it's kind of FAQ. Have a thread waiting in your driver
with add_wait_queue and schedule(). When awoken, the even thread
can signal the main worker thread or do the job itself.
But first, make sure you are not served better with an
event driven main thread (e.g. open a file descriptor
into your driver, then use select() on it together with
all other of your descriptors).
-- Pete
next parent reply other threads:[~2002-03-29 17:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.1017422340.6661.linux-kernel2news@redhat.com>
2002-03-29 17:27 ` Pete Zaitcev [this message]
2002-03-29 17:27 kernel notification to user space task Hari Gadi
[not found] <7CFD7CA8510CD6118F950002A519EA3001067CAA@leonoid.in.ishoni.com>
2002-03-29 20:06 ` Greg KH
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=200203291727.g2THRIM01125@devserv.devel.redhat.com \
--to=zaitcev@redhat.com \
--cc=amolk@ishoni.com \
--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