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

# IOUSBGetNextAssociatedDescriptor

Gets the next descriptor in the specified configuration descriptor that belongs to another container descriptor.

```
const IOUSBDescriptorHeader *IOUSBGetNextAssociatedDescriptor(const IOUSBConfigurationDescriptor *configurationDescriptor, const IOUSBDescriptorHeader *parentDescriptor, const IOUSBDescriptorHeader *currentDescriptor);
```

## Parameters

`configurationDescriptor`

A configuration descriptor that contains the descriptors to iterate through.

`parentDescriptor`

A descriptor pointer within the bounds of the configuration descriptor.

`currentDescriptor`

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

## Return Value

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

## Discussion

This method uses `getNextDescriptor`, but returns `NULL` if it finds another descriptor whose descriptor type field matches the value used for the parent descriptor’s type. Using `NULL` for the current descriptor returns the first descriptor after the parent 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)