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

# Create

Creates a new packet buffer pool object and allocates space for the specified number of packets.

```
static kern_return_t Create(OSObject *poolOwner, const char name[1024], uint32_t packetCount, uint32_t bufferCount, uint32_t bufferSize, IOUserNetworkPacketBufferPool **pool);
```

## Parameters

`poolOwner`

The object that owns the packet buffer pool. Typically, you specify your custom [`IOUserNetworkEthernet`](/documentation/NetworkingDriverKit/IOUserNetworkEthernet) object as the owner of a pool, but you may choose a different object.

`name`

The name to assign to the pool.

`packetCount`

The number of packets to support in the pool.

`bufferCount`

The number of buffers to create to store the packet data. Specify a value that is the same size or larger than the value in `packetCount`.

`bufferSize`

The number of bytes in each packet buffer.

`pool`

On return, the newly allocated packet buffer pool, or `NULL` if an error occurred.

## Return Value

`kIOReturnSuccess` if the method created the pool successfully.

## Discussion

Use this method to create a new packet buffer pool object for your driver, and use that pool when creating the submission and completion queues you use to manage packets. This method allocates a contiguous block of wired memory to store the specified number of packets.

---

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)