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

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

VGET(9)

Contents


NAME    [Toc]    [Back]

     vget -- get a vnode from the free list

SYNOPSIS    [Toc]    [Back]

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

     int
     vget(struct vnode *vp, int lockflag, struct thread *td);

DESCRIPTION    [Toc]    [Back]

     Get a vnode from the free list and increment its reference count.

     vp        the vnode to remove from the free list

     lockflag  if non-zero, the vnode will also be locked

     When not in use, vnodes are kept on a free list.  The vnodes still reference
 valid files but may be reused to refer to a new file at any time.
     Often, these vnodes are also held in caches in the system, such as the
     name cache.

     When a vnode which is on the free list is used again, for instance if the
     vnode was found in the name cache as a result of a call to VOP_LOOKUP(9)
     then the new user must call vget() to increment the reference count and
     remove it from the free list.

SEE ALSO    [Toc]    [Back]

      
      
     vnode(9), vput(9), vref(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
ufmFreeTypefaceList IRIX free a list of typefaces
VOP_SETACL FreeBSD set the access control list for a vnode
DtDtsFreeAttributeList HP-UX free a list of data attributes
VOP_ACLCHECK FreeBSD check an access control list for a vnode
VOP_GETACL FreeBSD retrieve access control list for a vnode
DtDtsFreeDataTypeNames HP-UX free a list of data type names
vlgetcontrollist IRIX get and free the list of valid VL controls for a path
VOP_LISTEXTATTR FreeBSD retrieve a list of named extended attribute from a vnode
CSSM_DL_FreeNameList Tru64 Free the list of the logical data store names (CDSA)
DL_FreeNameList Tru64 Free the list of the logical data store names (CDSA)
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service