---
title: GetPacketCount
framework: networkingdriverkit
role: symbol
role_heading: Instance Method
path: networkingdriverkit/iousernetworkpacketbufferpool/getpacketcount
---

# GetPacketCount

Returns the number of network packets that the pool is capable of storing.

## Declaration

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

## Parameters

- `count`: On output, the number of network packets supported by 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

- [GetBufferCount](networkingdriverkit/iousernetworkpacketbufferpool/getbuffercount.md)
