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.

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
R10 FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.