---
name: "vcount"
section: "9"
platform: "linux"
package: "freebsd-manpages"
version: "6.0-5"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/vcount"
---

# vcount(9)

get total number of references to a device

## NAME

**vcount**, **count\_dev** – get total number of references to a device

## SYNOPSIS

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

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

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

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

*int*\

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

*int*\

**count\_dev**(*dev\_t dev*);

## DESCRIPTION

**vcount**() is used to get the number of references to a particular device. It allows for the fact that multiple vnodes may reference the same device. **count\_dev**() does the same thing as **vcount**(), but takes a *dev\_t* rather than a *struct vnode* pointer as an argument.

## RETURN VALUES

**vcount**() and **count\_dev**() both return the number of references to the device.

## SEE ALSO

[VFS(9)](/VFS/9.md), [vnode(9)](/vnode/9.md)

## AUTHORS

This manual page was written by Andrew Stevenson.
