---
name: "vrefcnt"
section: "9freebsd"
platform: "linux"
package: "freebsd-manpages"
version: "12.2-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/vrefcnt/9freebsd"
---

# vrefcnt(9freebsd)

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.
