---
title: mbuf_maxlen
framework: Kernel
role: symbol
role_heading: Function
platforms: [macOS 10.4+]
path: kernel/1535774-mbuf_maxlen
---

# mbuf_maxlen

## Declaration

```occ
size_t mbuf_maxlen(const mbuf_t mbuf);
```

## Parameters

- `mbuf`: The mbuf.

## Return Value

Return Value The maximum lenght of data for this mbuf.

## Discussion

Discussion Retrieves the maximum length of data that may be stored in this mbuf. This value assumes that the data pointer was set to the start of the possible range for that pointer (mbuf_data_start).
