PDA

View Full Version : Traversing the IOKit




multinode
Aug 16, 2013, 11:46 AM
I have a DADiskRef of a USB disk. How can I recurse the DADiskRef's children to get the LocationId of the USB device?



heyadrian
Aug 19, 2013, 12:16 AM
If you're referring to the interfaces and endpoints of the USB device itself, then you'd need to start looking at:

IOUSBDeviceInterface and/or IOUSBDevice

In terms of block devices, I've never really deals with them, only just comms devices such as TTY devices or network devices.

Either way, through IOUSBDeviceInterface and/or IOUSBDevice

You can pretty much get everything you want from the EndPoint descriptors.