Date: Sun, 1 Mar 2020 13:49:24 +0100 From: Hans Petter Selasky <hps@selasky.org> To: Farhan Khan <farhan@farhan.codes>, freebsd-usb@freebsd.org Subject: Re: Detecting if USB device pulled from machine Message-ID: <c46dbb00-44bb-6532-c430-6e6add4d8ed4@selasky.org> In-Reply-To: <52e73cc5-5881-40bd-99bf-5b69f5cbcc4f@www.fastmail.com> References: <52e73cc5-5881-40bd-99bf-5b69f5cbcc4f@www.fastmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c46dbb00-44bb-6532-c430-6e6add4d8ed4>