Page MenuHomeFreeBSD

hid: Import keyboard driver (hkbd)
ClosedPublic

Authored by wulf on Jan 6 2021, 12:54 AM.
Tags
None
Referenced Files
F132651554: D27991.diff
Sat, Oct 18, 6:43 PM
Unknown Object (File)
Sun, Oct 12, 8:17 PM
Unknown Object (File)
Wed, Oct 8, 5:23 PM
Unknown Object (File)
Thu, Sep 18, 10:06 PM
Unknown Object (File)
Sep 15 2025, 2:48 PM
Unknown Object (File)
Sep 11 2025, 6:11 AM
Unknown Object (File)
Sep 9 2025, 2:58 PM
Unknown Object (File)
Aug 19 2025, 10:52 AM
Subscribers
None

Details

Summary

This imports hkbd(4) driver which is conversion of existing ukbd(4) to the HID subsystem.

Unlike ukbd which is running entirely under Giant, hkbd uses 2 locks - private mutex for interrupt handler/repeat callout and Giant for syscons interface. Lockless queue is used for passing of key-press events from mtx-protected code to Giant-protected one. Other differences are minor.

This revision is subset of https://reviews.freebsd.org/D27777

Diff Detail

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

Event Timeline

wulf requested review of this revision.Jan 6 2021, 12:54 AM
wulf created this revision.
This revision is now accepted and ready to land.Jan 7 2021, 12:57 PM