Interface for mac

broken image
broken image
broken image

IORegistryEntryGetName(device, device_name) While (io_service_t device = IOIteratorNext(device_iter)) If (ret = kIOReturnSuccess & device_iter != IO_OBJECT_NULL) IOReturn ret = IOServiceGetMatchingServices(kIOMasterPortDefault, IOServiceMatching(kIOUSBDeviceClassName), &device_iter) In your program, you can search for all USB devices in the system using something like this: io_iterator_t device_iter = IO_OBJECT_NULL It's usually easier to inspect all USB devices manually. You can search by name instead of class type by using the -n option instead of -c but often the USB-level name doesn't match the retail name of the device, or is somehow abbreviated. This means either the driver client directly (kext, dext, or user space) or the IOUSBInterface objects representing the different interfaces on a composite device, and the driver clients attached to each of those. Will list all USB devices detected by the system, as well as any client objects in the I/O Registry. The IORegistryExplorer answer is correct, but as the question hints at, there are other ways to obtain the information, both on the Terminal and programmatically.