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

# mbuf_len

## Declaration

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

## Parameters

- `mbuf`: The mbuf.

## Return Value

Return Value The length.

## Discussion

Discussion Gets the length of data in this mbuf.
