*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> count_dev (9)              
Title
Content
Arch
Section
 

VCOUNT(9)

Contents


NAME    [Toc]    [Back]

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

SYNOPSIS    [Toc]    [Back]

     #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    [Toc]    [Back]

     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    [Toc]    [Back]

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

SEE ALSO    [Toc]    [Back]

      
      
     VFS(9), vnode(9)

AUTHORS    [Toc]    [Back]

     This man page was written by Andrew Stevenson.


FreeBSD 5.2.1		       February 6, 2001 		 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
size IRIX Returns the total number of elements in an array
alPendingEvents IRIX Get total number of event queued in event queue
vfinddev OpenBSD lookup a vnode by device number
device_get_unit FreeBSD access the unit number of a device
devclass_get_device FreeBSD translate unit number to device
Tie::RefHash IRIX use references as hash keys
revoke Tru64 Void all references to a file
refer FreeBSD preprocess bibliographic references for groff
refer NetBSD preprocess bibliographic references for groff
refer OpenBSD preprocess bibliographic references for groff
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service