I have a problem for read/write data to USB mass storage device, with 'Device or resource busy' error for below command:
ioctl(usbFD, USBDEVFS_CLAIMINTERFACE, &interface_num)
So i need to release interface before. But i don't know How can i pass interface_num correctly to this command:
ioctl(usbFD, USBDEVFS_RELEASEINTERFACE, &interface_num),
If it's not defined, is there any function to found this interface number. Please help me! Thanks.