Traversing the IOKit

Discussion in 'Mac Programming' started by multinode, Aug 16, 2013.

  1. macrumors regular

    Joined:
    Feb 4, 2011
    #1
    I have a DADiskRef of a USB disk. How can I recurse the DADiskRef's children to get the LocationId of the USB device?
     
  2. macrumors member

    Joined:
    Aug 14, 2011
    #2
    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.
     

Share This Page