logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

vcount, count_dev — get total number of references to a device

Authors

       This manual page was written by Andrew Stevenson.

Debian                                          January 19, 2012                                       VCOUNT(9)

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
       structcdev rather than a structvnode pointer as an argument.

Name

       vcount, count_dev — get total number of references to a device

Return Values

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

See Also

VFS(9), vnode(9)

Synopsis

#include<sys/param.h>#include<sys/time.h>#include<sys/conf.h>#include<sys/vnode.h>intvcount(structvnode*vp);

       intcount_dev(structcdev*dev);

See Also