vhold, vdrop -- acquire/release a hold on a vnode
#include <sys/param.h>
#include <sys/vnode.h>
void
vhold(struct vnode *vp);
void
vdrop(struct vnode *vp);
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 holdcount
is less than or equal zero prior to calling vdrop(), the system
will panic. If the vnode is no longer referenced, it will freed.
vbusy(9), vfree(9)
This man page was written by Chad David <[email protected]>.
FreeBSD 5.2.1 November 21, 2001 FreeBSD 5.2.1 [ Back ] |