On Mon, Jan 6, 2020 at 6:02 AM Jef Driesen jef@libdivecomputer.org wrote:
I'm afraid this didn't give much more info. It looks like the underlying ioctl syscall:
ioctl(fd, IOCTL_USBFS_CLAIMINTF, &iface);
Ugh, they have their own names for it. The kernel calls it USBDEVFS_CLAIMINTERFACE.
failed with EBUSY, and that's about it. There is no clue why it failed.
That just means that somebody else already claimed it. Either some kernel driver, or (in this case much more likely) another usbfs user.
I wonder what would happen if libdivecomputer would just try to use the thing regardless.
Because maybe the reason it's busy is that it already got claimed by the Android "associate app with usb device" logic?
Linus