Page MenuHomeFreeBSD

hid: Import raw hid driver (hidraw)
ClosedPublic

Authored by wulf on Jan 6 2021, 1:04 AM.
Tags
None
Referenced Files
F110681504: D27992.diff
Fri, Feb 21, 8:36 PM
Unknown Object (File)
Wed, Feb 19, 10:00 PM
Unknown Object (File)
Wed, Jan 29, 9:00 PM
Unknown Object (File)
Sat, Jan 25, 8:02 PM
Unknown Object (File)
Sat, Jan 25, 7:48 PM
Unknown Object (File)
Fri, Jan 24, 7:53 AM
Unknown Object (File)
Fri, Jan 24, 5:05 AM
Unknown Object (File)
Jan 20 2025, 4:35 PM
Subscribers
None

Details

Summary

This driver provides raw access to HID devices through uhid(4)-compatible interface and is based on pre-8.x uhid(4) code.

Unlike uhid(4) it does not take devices in to monopoly ownership and allows parallel access from other drivers.
hidraw supports Linux's hidraw-compatible interface as well.

Also this change adds HIDRAW_MAKE_UHID_ALIAS kernel option which installs /dev/uhid# alias to hidraw character device for compatibility with some existing uhid(4) users like Firefox.
As side effect enabling of this option renames traditional uhid(4) driver to hidraw to make possible using of common unit number allocator.

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

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped