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

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

VREF(9)

Contents


NAME    [Toc]    [Back]

     vref -- increment the use count for a vnode

SYNOPSIS    [Toc]    [Back]

     #include <sys/param.h>
     #include <sys/vnode.h>

     void
     vref(struct vnode *vp);

DESCRIPTION    [Toc]    [Back]

     Increment the v_usecount field of a vnode.

     vp  the vnode to increment

     Each vnode maintains a reference count of how many parts of the system
     are using the vnode.  This allows the system to detect when a vnode is no
     longer being used and can be safely recycled for a different file.

     Any code in the system which is using a vnode (e.g. during the operation
     of some algorithm or to store in a data structure) should call vref().

SEE ALSO    [Toc]    [Back]

      
      
     vget(9), vnode(9), vput(9), vrele(9)

AUTHORS    [Toc]    [Back]

     This man page was written by Doug Rabson.


FreeBSD 5.2.1			 July 24, 1996			 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
vrele OpenBSD decrement the use count for a vnode
vrele FreeBSD decrement the use count for a vnode
vput FreeBSD decrement the use count for a vnode and unlock it
vrecycle OpenBSD recycle a vnode if its reference count is zero
vput OpenBSD decrement the reference count for a vnode and unlock it
incr IRIX Increment the value of a variable
sem_post OpenBSD increment (unlock) a semaphore
DTinctime IRIX increment a DAT time code
sem_post FreeBSD increment (unlock) a semaphore
XmScrollBarGetValues HP-UX A ScrollBar function that returns the ScrollBar's increment values
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service