---
title: GetBufferCount
framework: networkingdriverkit
role: symbol
role_heading: Instance Method
path: networkingdriverkit/iousernetworkpacketbufferpool/getbuffercount
---

# GetBufferCount

Returns the number of buffers associated with the network packet buffer pool.

## Declaration

```occ
virtual kern_return_t GetBufferCount(uint32_t *count);
```

## Parameters

- `count`: On output, the number of buffers in the pool. It is a programmer error to specify NULL or an invalid pointer for this parameter.

## Return Value

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

## See Also

### Getting Pool Information

- [GetPacketCount](networkingdriverkit/iousernetworkpacketbufferpool/getpacketcount.md)
