vhold(9) vdropl

SYNOPSIS

In sys/param.h In sys/vnode.h Ft void Fn vhold struct vnode *vp Ft void Fn vholdl struct vnode *vp Ft void Fn vdrop struct vnode *vp Ft void Fn vdropl struct vnode *vp

DESCRIPTION

The Fn vhold and Fn vholdl functions increment 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 Fn vdrop and Fn vdropl functions decrement the v_holdcnt of the vnode. If the holdcount is less than or equal to zero prior to calling Fn vdrop or Fn vdropl , the system will panic. If the vnode is no longer referenced, it will be freed.

Fn vhold and Fn vdrop lock the vnode interlock while Fn vholdl and Fn vdropl expect the interlock to already be held.

AUTHORS

This manual page was written by An Chad David Aq [email protected] .