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

# mbuf_setnext

## Declaration

```occ
errno_t mbuf_setnext(mbuf_t mbuf, mbuf_t next);
```

## Parameters

- `mbuf`: The mbuf.
- `next`: The new next mbuf.

## Return Value

Return Value 0 upon success otherwise the errno error.

## Discussion

Discussion Sets the next mbuf in the chain.
