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

# DequeuePacket

Retrieves a single network packet from the queue.

```
virtual kern_return_t DequeuePacket(IOUserNetworkPacket **packet);
```

## Parameters

`packet`

On return, an array containing one element, which represents the next available packet.

## Return Value

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

## Discussion

Call this method to retrieve a single packet from a submission queue. This method returns the requested packet, or an error if no more packets are available.

---

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)