linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Synchronizing evdev readers and drivers?
@ 2010-12-02 17:26 Bill Gatliff
  2010-12-02 21:22 ` Dmitry Torokhov
  2010-12-04 17:46 ` Jonathan Cameron
  0 siblings, 2 replies; 20+ messages in thread
From: Bill Gatliff @ 2010-12-02 17:26 UTC (permalink / raw)
  To: linux-input

Guys:


Is there any  way for an input device driver (e.g. something that
calls input_report_abs() and input_sync()) to know when there is a
reader of its associated /dev/input/eventX?

I would love to know when something calls evdev_read() and/or
evdev_poll(), so that I could then initiate a sampling operation on
the hardware itself.  Otherwise, I'm forced to periodically poll the
hardware and that means I'm either gathering data that no application
wants, or I'm gathering it before (or faster than) an application is
actually asking for it.

I have stared at a lot of the evdev and related code, and can't find
anything that looks like what I want.  Am I just not seeing it, or am
I looking in the wrong place?


Thanks!


b.g.
-- 
Bill Gatliff
bgat@billgatliff.com

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2010-12-04 18:15 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-02 17:26 Synchronizing evdev readers and drivers? Bill Gatliff
2010-12-02 21:22 ` Dmitry Torokhov
2010-12-02 21:34   ` Bill Gatliff
2010-12-03 12:42     ` Mark Brown
2010-12-03 13:03       ` Bill Gatliff
2010-12-03 13:53         ` Mark Brown
2010-12-03 17:36           ` Bill Gatliff
2010-12-03 18:52             ` Mark Brown
2010-12-03 19:41               ` Bill Gatliff
2010-12-03 22:27                 ` Mark Brown
2010-12-03 23:05                   ` Dmitry Torokhov
2010-12-03 19:50             ` Dmitry Torokhov
2010-12-03 20:17               ` Bill Gatliff
2010-12-03 21:24                 ` Dmitry Torokhov
2010-12-03 19:32     ` Dmitry Torokhov
2010-12-03 19:50       ` Bill Gatliff
2010-12-03 20:56         ` Dmitry Torokhov
2010-12-04 17:52           ` Jonathan Cameron
2010-12-04 18:15           ` Bill Gatliff
2010-12-04 17:46 ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).