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

# mbuf_adj

## Declaration

```occ
void mbuf_adj(mbuf_t mbuf, int len);
```

## Parameters

- `mbuf`: The mbuf chain to trim.
- `len`: The number of bytes to trim from the mbuf chain.

## Discussion

Discussion Trims len bytes from the mbuf. If the length is greater than zero, the bytes are trimmed from the front of the mbuf. If the length is less than zero, the bytes are trimmed from the end of the mbuf chain.
