I think I figured it out. There is no specific mechanism, its just that the 
detach() function updates that value. This was a misunderstanding on my part. 
Thank you!

On Sun, Mar 1, 2020, at 7:49 AM, Hans Petter Selasky wrote:
> On 2020-03-01 08:50, Farhan Khan wrote:
> > 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!
> 
> Hi,
> 
> Check how "libusb20_dev_check_connected()" works in libusb.
> 
> --HPS
> 

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

_______________________________________________
freebsd-usb@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"

Reply via email to