count_dev(9) get total number of references to a device

Other Alias

vcount

SYNOPSIS

In sys/param.h In sys/time.h In sys/conf.h In sys/vnode.h Ft int Fn vcount struct vnode *vp Ft int Fn count_dev struct cdev *dev

DESCRIPTION

Fn 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. Fn count_dev does the same thing as Fn vcount , but takes a Vt struct cdev rather than a Vt struct vnode pointer as an argument.

RETURN VALUES

Fn vcount and Fn count_dev both return the number of references to the device.

AUTHORS

This manual page was written by An Andrew Stevenson .