FreeBSD hidraw backend to replace libusb backend
- https://github.com/libusb/hidapi/issues/274#issuecomment-1543512022
It would be good we have a FreeBSD specific backend using hidraw for HIDAPI so that FreeBSD HIDAPI users no longer need to use the libusb backend.
Reference: https://reviews.freebsd.org/D27992
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.
From @wulf7
- https://github.com/libusb/hidapi/issues/274#issuecomment-1543639126
I already added hidraw enumeration support to https://github.com/wulf7/libudev-devd/ So, most probably, addition of linux hidapi backend to build is only thing left.
@wulf7
Please help to review the current hidraw backend for Linux and see what would be needed to change to make it working under FreeBSD hidraw. PR will be more than welcome.
- https://github.com/libusb/hidapi/blob/master/linux/hid.c