---
title: DequeuePacket
framework: networkingdriverkit
role: symbol
role_heading: Instance Method
path: networkingdriverkit/iousernetworkpacketqueue/dequeuepacket
---

# DequeuePacket

Retrieves a single network packet from the queue.

## Declaration

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

## Parameters

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

## Return Value

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

## Discussion

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.

## See Also

### Queueing and Dequeueing Packets

- [EnqueuePacket](networkingdriverkit/iousernetworkpacketqueue/enqueuepacket.md)
- [EnqueuePackets](networkingdriverkit/iousernetworkpacketqueue/enqueuepackets-qzx.md)
- [DequeuePackets](networkingdriverkit/iousernetworkpacketqueue/dequeuepackets.md)
