HomeFreeBSD

libusb: hotplug, use events instead of a timer when possible

Description

libusb: hotplug, use events instead of a timer when possible

Try to fetch events from nlsysevent or devd to determine when
to scan the usb bus for devices addition or removal.
if none are available fallback on the regular timer based (4s)
scanner

if devd socket or netlink socket is closed or error fallback on the
timer based method.

Reviewed by: kevans
Differential Revision: https://reviews.freebsd.org/D48300

Details

Provenance
baptAuthored on Jan 4 2025, 10:23 AM
Reviewer
kevans
Differential Revision
D48300: libusb: hotplug, use events instead of a timer when possible
Parents
rGe3b4a51580fc: pkg(7): expand VERSION_MAJOR, VERSION_MINOR, RELEASE and OSNAME
Branches
Unknown
Tags
Unknown