<!--
{
  "availability" : [
    "DriverKit: 19.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "USBDriverKit",
  "identifier" : "/documentation/USBDriverKit/IOUSBHostDevice/CreateInterfaceIterator",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "USBDriverKit"
    ],
    "preciseIdentifier" : "c:@S@IOUSBHostDevice@F@CreateInterfaceIterator#*l#"
  },
  "title" : "CreateInterfaceIterator"
}
-->

# CreateInterfaceIterator

Creates an iterator to get the list of interfaces from the device.

```
virtual kern_return_t CreateInterfaceIterator(uintptr_t *ref);
```

## Parameters

`ref`

A pointer to a variable. On return, this variable contains an opaque iterator reference.

## Return Value

<doc://com.apple.documentation/documentation/DriverKit/kIOReturnSuccess> on success, or another value if an error occurs. See <doc://com.apple.documentation/documentation/DriverKit/error-codes>.

## Discussion

Use this method to create an iterator for the [`IOUSBHostInterface`](/documentation/USBDriverKit/IOUSBHostInterface) children belonging to this device. Pass the value you receive in the `ref` parameter to the [`CopyInterface`](/documentation/USBDriverKit/IOUSBHostDevice/CopyInterface) method when fetching the interfaces.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)