---
name: "vrefcnt"
section: "9"
platform: "freebsd"
package: "base"
version: "16.0-CURRENT-20261027-61c70dc16a79"
release: "FreeBSD 16.0-CURRENT (2026-10-27)"
platforms: ["freebsd"]
url: "https://new.carta.tech/vrefcnt"
---

# vrefcnt(9)

returns the use count of a vnode

## NAME

**vrefcnt** – returns the use count of a vnode

## SYNOPSIS

**#include \<sys/param.h\>**

**#include \<sys/vnode.h\>**

*int*\

**vrefcnt**(*struct vnode \*vp*);

## DESCRIPTION

Returns the use count of a vnode.

See [vnode(9)](/vnode/9.md) for a detailed description of the vnode reference counts.

## SEE ALSO

[vget(9)](/vget/9.md), [vnode(9)](/vnode/9.md), [vput(9)](/vput/9.md), [vrele(9)](/vrele/9.md)

## AUTHORS

This manual page was written by Chad David.
