Re: [RFC PATCH] poll: add poll_requested_events() function

2011-07-07 Thread Jonathan Corbet
On Fri, 1 Jul 2011 15:37:30 +0200 Hans Verkuil hverk...@xs4all.nl wrote: In some cases the poll() implementation in a driver has to do different things depending on the events the caller wants to poll for. An example is when a driver needs to start a DMA engine if the caller polls for POLLIN,

Re: [RFC PATCH] poll: add poll_requested_events() function

2011-07-07 Thread Hans Verkuil
On Thursday, July 07, 2011 18:42:55 Jonathan Corbet wrote: On Fri, 1 Jul 2011 15:37:30 +0200 Hans Verkuil hverk...@xs4all.nl wrote: In some cases the poll() implementation in a driver has to do different things depending on the events the caller wants to poll for. An example is when a

[RFC PATCH] poll: add poll_requested_events() function

2011-07-01 Thread Hans Verkuil
In some cases the poll() implementation in a driver has to do different things depending on the events the caller wants to poll for. An example is when a driver needs to start a DMA engine if the caller polls for POLLIN, but doesn't want to do that if POLLIN is not requested but instead only