Synchronizing evdev readers and drivers?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux