Re: Driver poll method

From: Jeff Garzik (jgarzik@pobox.com)
Date: Tue Jul 15 2003 - 09:23:14 EST


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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Jul 15 2003 - 22:00:57 EST