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

# SetPacketBufferPool

Assigns the specified buffer pool with this queue.

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

## Parameters

`pool`

The new buffer pool to associate with the queue.

## Return Value

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

## 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.

---

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)