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
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped - Build Status
Buildable 61499 Build 58383: arc lint + arc unit
Event Timeline
Comment Actions
Looks fine in principle
lib/libusb/libusb10_hotplug.c | ||
---|---|---|
176 | This doesn't seem like it would work? | |
192 | IMO "ignore any error" should just be a (void) cast for the return vaule, but I don't feel strongly about it. | |
192 | Where is timeout coming from here? With this and the above, kinda seems like something went wrong with the patch. |
lib/libusb/libusb10_hotplug.c | ||
---|---|---|
192 | Yeah not a huge issue but I agree (void)poll(...) is both a programmer-readable and machine-readable way to indicate that errors are intentionally ignored. |