Re: [PATCH] input: evdev: Add a read() callback

From
Mark Brown <hidden>
Date
2011-02-26 09:44:57
Reply to
Bill Gatliff, 2011-02-26
On Fri, Feb 25, 2011 at 08:46:24PM -0600, Bill Gatliff wrote:
On Mon, Feb 21, 2011 at 10:33 PM, Mark Brown
[off-list ref] wrote:
quoted
But surely the most obvious solution here is to standardise a rate
control interface?
Yes, and no.  A standardized rate control interface would deal with
the rate control problem, but leave the synchronization problem
unsolved.
The main source of the problem with delayed readings was that
applications weren't blocking waiting for events.  If applications block
waiting for events then the data will be delivered to them promptly.
For cases where multiple readings need to be synced IIO looks like the
way forward.
quoted
The problem you're trying to solve is also an issue for really common
and standard things like touchscreens and polled switches/keys (the
latter of which you mentioned in your mail) which are used by standard
applications.
The existing "polled switch" implementation sets up a throttled
polling loop in kernel code.  The "polled switch" that I was thinking
of when I wrote the essay for the commit was "a switch that is polled
each time read() gets called".  I should have been clearer--- and
probably picked a different name.  :)
It's the same thing, though - I'd really expect it to be handled by the
same code in kernel.
Thread (9 messages) 9 messages, 4 authors, last reply 2011-02-26
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help