USB stack getting confused

Hans Petter Selasky hps at selasky.org
Sat Mar 9 15:26:32 UTC 2019


On 3/9/19 11:29 AM, O'Connor, Daniel wrote:
> If I hold the user space process in gdb 'forever' (eg over night) usbconfig doesn't see the device, but the moment I quit the user space process it can be seen again.

Check the output from "procstat -ak". Likely your application is not 
closing the USB handle during device detach and so a deadlock happens.

Also see:
libusb20_dev_check_connected() . Poll this function regularly to figure 
out if disconnect is needed.

--HPS


More information about the freebsd-hackers mailing list