我們一直使用OSX: How to get a volume name (or bsd name) from a IOUSBDeviceInterface or location id中描述的解決方案將USB設備從IOKit映射到其對應的BSD設備位置。代碼如下: CFTypeRef name = IORegistryEntrySearchCFProperty(usbDevice,
掛我已經從蘋果的例子中使用的代碼: // Send data through out pipe
ret = (*usbInterface)->WritePipe(usbInterface, bulkOutRef, (void *)kTestMessage, 4);
if (ret != kIOReturnSuccess)
{
NSLog(@"Write failed (error: