opnsense-src/lib/libusb
SHENGYI HUNG d285265918 libusb: Emit event after deregistering hotplug handler
The original implementation did not emit an event when a hotplug handler
was deregistered. This omission causes issues for programs that follow
the best practices recommended by libusb—particularly those that use
`libusb_hotplug_register_callback()` or similar functions in a loop
while managing hotplug handlers dynamically.

Without emitting an event after deregistration, these programs can
become stuck waiting indefinitely for an event that will never come,
as the condition to break out of the wait loop is never satisfied.

See: 6c0ae1ab45/libusb/hotplug.c (L459)

Reviewed by:    bapt
Sponsored By:   FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D50170
2025-05-08 14:20:21 -04:00
..
libusb-0.1.pc.in
libusb-1.0.pc.in
libusb-2.0.pc.in
libusb.3 manuals: Fix dates 2024-10-28 12:26:03 -03:00
libusb.h
libusb01.c
libusb10.c libusb: hotplug, use events instead of a timer when possible 2025-01-16 15:10:11 +01:00
libusb10.h libusb: hotplug, use events instead of a timer when possible 2025-01-16 15:10:11 +01:00
libusb10_desc.c
libusb10_hotplug.c libusb: Emit event after deregistering hotplug handler 2025-05-08 14:20:21 -04:00
libusb10_io.c libusb: Emit event after deregistering hotplug handler 2025-05-08 14:20:21 -04:00
libusb20.3
libusb20.c
libusb20.h
libusb20_desc.c
libusb20_desc.h
libusb20_int.h
libusb20_ugen20.c
libusb_global_linux.h
Makefile
Makefile.depend
usb.h