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

# IOUSBGetNextDescriptor

Gets the next descriptor in a configuration descriptor.

```
const IOUSBDescriptorHeader *IOUSBGetNextDescriptor(const IOUSBConfigurationDescriptor *configurationDescriptor, const IOUSBDescriptorHeader *currentDescriptor);
```

## Parameters

`configurationDescriptor`

The configuration descriptor that contains the descriptors to iterate through.

`currentDescriptor`

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

## Return Value

The descriptor pointer, or `NULL` if no descriptor can be returned.

## Discussion

This method advances the current descriptor by its length, and validates that the new descriptor fits within the bounds of the configuration descriptor. Passing `NULL` for the `currentDescriptor` argument returns the first descriptor after the configuration 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)