input_sync()¶
Purpose¶
Synchronizes an input event frame and notifies user space that a complete set of input events is ready.
Header¶
Prototype¶
Parameters¶
dev: input device.
Return Value¶
None.
Minimal Example¶
Common Pitfalls¶
- Forgetting
input_sync()can make user-space tools such asevtestappear not to receive complete events. - Group related event reports before one sync when reporting a logical frame.