From: Jeff Garzik <jgarzik@pobox.com>
To: "Bloch, Jack" <Jack.Bloch@icn.siemens.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Driver poll method
Date: Tue, 15 Jul 2003 10:23:14 -0400 [thread overview]
Message-ID: <20030715142314.GA13207@gtf.org> (raw)
In-Reply-To: <7A25937D23A1E64C8E93CB4A50509C2A0179B6E2@stca204a.bus.sc.rolm.com>
On Tue, Jul 15, 2003 at 07:03:23AM -0700, Bloch, Jack wrote:
> I am implementing a poll method in a driver. I have defined a queue which I
> put into a wait table with a call to poll_wait. I also have my own DMA input
> list which is very specific to my device. I want my application to sleep in
> a suspended state until my device writes some data into the input list. Is
> it not so that the Kernel should periodically call my poll routine after my
> application calls select (until the select timer expires or as in my case, I
> specify a NULL value for the timeout). Please CC me directly on any
> responses.
drivers/sounds/via82cxxx_audio and several other audio drivers have
excellent examples of working poll(2) support.
The basic idea is that you set up the poll table, then the kernel does
the waiting...
Jeff
prev parent reply other threads:[~2003-07-15 14:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-15 14:03 Driver poll method Bloch, Jack
2003-07-15 14:23 ` Jeff Garzik [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=20030715142314.GA13207@gtf.org \
--to=jgarzik@pobox.com \
--cc=Jack.Bloch@icn.siemens.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