---
title: EnqueuePackets
framework: networkingdriverkit
role: symbol
role_heading: Instance Method
path: networkingdriverkit/iousernetworkpacketqueue/enqueuepackets-qzx
---

# EnqueuePackets

Adds multiple network packets to the queue for processing.

## Declaration

```occ
virtual uint32_t EnqueuePackets(IOUserNetworkPacket **packets, uint32_t packetCount);
```

## Parameters

- `packets`: An array of network packets you want to add to the queue.
- `packetCount`: The number of network packets in the packets parameter.

## Return Value

Return Value The number of packets actually added to the queue.

## Discussion

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

## See Also

### Queueing and Dequeueing Packets

- [EnqueuePacket](networkingdriverkit/iousernetworkpacketqueue/enqueuepacket.md)
- [DequeuePacket](networkingdriverkit/iousernetworkpacketqueue/dequeuepacket.md)
- [DequeuePackets](networkingdriverkit/iousernetworkpacketqueue/dequeuepackets.md)
