---
title: EnqueuePacket
framework: networkingdriverkit
role: symbol
role_heading: Instance Method
path: networkingdriverkit/iousernetworkpacketqueue/enqueuepacket
---

# EnqueuePacket

Adds a single network packet to the queue for processing.

## Declaration

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

## Parameters

- `packet`: The packet to add to the queue.

## Return Value

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

## Discussion

Discussion Call this method when you are ready to submit a single packet to a completion queue for processing. After the system processes the enqueued network packet, it recycles it and makes it available on the corresponding submission queue.

## See Also

### Queueing and Dequeueing Packets

- [EnqueuePackets](networkingdriverkit/iousernetworkpacketqueue/enqueuepackets-qzx.md)
- [DequeuePacket](networkingdriverkit/iousernetworkpacketqueue/dequeuepacket.md)
- [DequeuePackets](networkingdriverkit/iousernetworkpacketqueue/dequeuepackets.md)
