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

# DequeuePackets

Retrieves multiple network packets from the queue.

```
virtual uint32_t DequeuePackets(IOUserNetworkPacket **packets, uint32_t maxDequeueCount);
```

## Parameters

`packets`

On return, an array containing the next available packets.

`maxDequeueCount`

The number of packets you want to dequeue.

## Return Value

The actual number of packets returned in the `packets` parameter.

## Discussion

Call this method to retrieve multiple packets from the submission queue. This method returns as many packets as are available, up to the maximum number you specify.

---

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)