<!--
{
  "availability" : [
    "DriverKit: 19.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "USBDriverKit",
  "identifier" : "/documentation/USBDriverKit/IOUSBGetNextEndpointDescriptor",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "USBDriverKit"
    ],
    "preciseIdentifier" : "c:@F@IOUSBGetNextEndpointDescriptor"
  },
  "title" : "IOUSBGetNextEndpointDescriptor"
}
-->

# IOUSBGetNextEndpointDescriptor

Finds the next endpoint descriptor associated with an interface descriptor.

```
const IOUSBEndpointDescriptor *IOUSBGetNextEndpointDescriptor(const IOUSBConfigurationDescriptor *configurationDescriptor, const IOUSBInterfaceDescriptor *interfaceDescriptor, const IOUSBDescriptorHeader *currentDescriptor);
```

## Parameters

`configurationDescriptor`

A configuration descriptor that contains the descriptors to iterate through.

`interfaceDescriptor`

An interface descriptor within the bounds of the configuration descriptor.

`currentDescriptor`

A descriptor pointer within the bounds of the configuration descriptor, or `NULL`.

## Return Value

An endpoint descriptor pointer, or `NULL` if no matching descriptor can be found.

## Discussion

This method uses `getNextAssociatedDescriptorWithType` to fetch the next endpoint descriptor associated with a specific interface descriptor.

---

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)