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

# mbuf_mclhasreference

## Declaration

```occ
int mbuf_mclhasreference(mbuf_t mbuf);
```

## Parameters

- `mbuf`: The mbuf with the cluster to test.

## Return Value

Return Value 0 if there is no reference by another mbuf, 1 otherwise.

## Discussion

Discussion Check if a cluster of an mbuf is referenced by another mbuf. References may be taken, for example, as a result of a call to mbuf_split or mbuf_copym
