<!--
{
  "availability" : [
    "DriverKit: -"
  ],
  "documentType" : "symbol",
  "framework" : "NetworkingDriverKit",
  "identifier" : "/documentation/NetworkingDriverKit/IOUserNetworkPacketQueue/CopyDataQueue",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "NetworkingDriverKit"
    ],
    "preciseIdentifier" : "c:@S@IOUserNetworkPacketQueue@F@CopyDataQueue#**$@S@IODataQueueDispatchSource#"
  },
  "title" : "CopyDataQueue"
}
-->

# CopyDataQueue

Returns the dispatch queue that this object uses to execute tasks.

```
virtual kern_return_t CopyDataQueue(IODataQueueDispatchSource **dataQueue);
```

## Parameters

`dataQueue`

On return, a pointer to the dispatch source that this object uses to generate tasks.

## Return Value

`kIOReturnSuccess` on success, or another value if an error occurred.

---

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)