---
title: SetPacketBufferPool
framework: networkingdriverkit
role: symbol
role_heading: Instance Method
path: networkingdriverkit/iousernetworkpacketqueue/setpacketbufferpool
---

# SetPacketBufferPool

Assigns the specified buffer pool with this queue.

## Declaration

```occ
virtual kern_return_t SetPacketBufferPool(IOUserNetworkPacketBufferPool *pool);
```

## Parameters

- `pool`: The new buffer pool to associate with the queue.

## Return Value

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

## Discussion

Discussion Use this method to change the buffer pool that provides network packets to the queue. This method releases the previous pool, if any, and retains the new object in the pool parameter.

## See Also

### Configuring the Queue Attributes

- [SetPacketDirection](networkingdriverkit/iousernetworkpacketqueue/setpacketdirection.md)
