On Thu, Dec 02, 2010 at 11:26:53AM -0600, Bill Gatliff wrote: > 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, We do not have such fine granularity as per-read. Input drivers get notified when first application opens one of the interfaces (by implementing input->open()). We expect that applications that open input interfaces will read the data from them. -- Dmitry -- 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