From: "Srini" <srini@omnilux.net>
To: "Alan Cox" <alan@lxorguk.ukuu.org.uk>
Cc: "Linux Kernel Mailing List" <linux-kernel@vger.kernel.org>
Subject: RE: Process Termination Indication in the Device Driver
Date: Mon, 30 Jun 2003 12:01:53 -0700 [thread overview]
Message-ID: <GOEALIFINNJACMGKPLKLGEDMCEAA.srini@omnilux.net> (raw)
In-Reply-To: <1056828251.6296.36.camel@dhcp22.swansea.linux.org.uk>
Hi Alan,
Thanks for the Reply. Using multiple instances of driver, which inturn
causes the kernel to closes the driver when the application dies is the
approach we
have planned to go about.
Thanks Again
Srini
-----Original Message-----
From: Alan Cox [mailto:alan@lxorguk.ukuu.org.uk]
Sent: Saturday, June 28, 2003 12:24 PM
To: Srini
Cc: Linux Kernel Mailing List
Subject: Re: Process Termination Indication in the Device Driver
On Sad, 2003-06-28 at 00:02, Srini wrote:
> I am new to Linux Kernel. I am experimenting with Device Driver in Kernel
> version 2.4. Is there a method by which the device driver could be
indicated
> by the
> kernel of the termination of a "user process" asynchronously.
>
> I know of the function find_task_by_pid that the driver could call to get
> the task
> structure given the pid.
If the application has files open then your device will receive flush
events (and/or release events if its the last open) for each file handle
as it is closed. Linux drivers dont normally care about process exit
information in the general case therefore since the OS will ensure
drivers get told when handles are cleaned up
prev parent reply other threads:[~2003-06-30 18:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-27 23:02 Srini
2003-06-28 19:24 ` Alan Cox
2003-06-30 19:01 ` Srini [this message]
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=GOEALIFINNJACMGKPLKLGEDMCEAA.srini@omnilux.net \
--to=srini@omnilux.net \
--cc=alan@lxorguk.ukuu.org.uk \
--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®