vholdl.9freebsd

Langue: en

Version: 365575 (ubuntu - 25/10/10)

Section: 9 (Appels noyau Linux)


BSD mandoc

NAME

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

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.

SEE ALSO

vnode(9)

AUTHORS

This manual page was written by An Chad David Aq davidc@acns.ab.ca .