Page MenuHomeFreeBSD

ukbd(4): Push LED events in ioctl handler rather than in xfer callback
ClosedPublic

Authored by wulf on Dec 23 2020, 9:30 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, May 16, 9:13 AM
Unknown Object (File)
Mon, Apr 27, 5:42 AM
Unknown Object (File)
Mon, Apr 27, 5:01 AM
Unknown Object (File)
Sun, Apr 26, 10:47 PM
Unknown Object (File)
Wed, Apr 22, 12:44 PM
Unknown Object (File)
Tue, Apr 21, 4:11 PM
Unknown Object (File)
Apr 14 2026, 9:56 AM
Unknown Object (File)
Apr 12 2026, 6:55 PM
Subscribers
None

Details

Summary

If LED state is set through evdev interface, than asynchronous nature
of USB transfer callback can lead to change of order of events echoed
back to userland as it causes LED events to be echoed with some lag.

Fix that with echoing of LED events synchronously in ioctl handler.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable