Detecting if USB device pulled from machine

Farhan Khan farhan at farhan.codes
Sun Mar 1 07:50:36 UTC 2020


Hi all,

Quick question: I am reviewing some USB code between FreeBSD and OpenBSD. In OpenBSD, there is a function called usbd_is_dying (sys/dev/usb/usbdi.c) which appears to check if a device was removed from the system. Is there an equivalent in FreeBSD?

Thanks!

--
Farhan Khan
PGP Fingerprint: 1312 89CE 663E 1EB2 179C 1C83 C41D 2281 F8DA C0DE



More information about the freebsd-usb mailing list