Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
VHOLD(9)		 BSD Kernel Developer's	Manual		      VHOLD(9)

NAME
     vhold, vdrop -- acquire/release a hold on a vnode

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

     void
     vhold(struct vnode	*vp);

     void
     vdrop(struct vnode	*vp);

DESCRIPTION
     The vhold() function increments the v_holdcnt of the given	vnode.	If the
     vnode has already been added to the free list and is still	referenced, it
     will be removed.

     The vdrop() function decrements the v_holdcnt of the vnode.  If the hold-
     count is less than	or equal zero prior to calling vdrop(),	the system
     will panic.  If the vnode is no longer referenced,	it will	freed.

SEE ALSO
     vbusy(9), vfree(9)

AUTHORS
     This man page was written by Chad David <davidc@acns.ab.ca>.

BSD			       November	21, 2001			   BSD

NAME | SYNOPSIS | DESCRIPTION | SEE ALSO | AUTHORS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=vhold&sektion=9&manpath=FreeBSD+5.2-RELEASE+and+Ports>

home | help