vdropl.9freebsd

Langue: en

Autres versions - même langue

Version: 308952 (debian - 07/07/09)

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 vdrop struct vnode *vp Ft void Fn vdropl struct vnode *vp

DESCRIPTION

The Fn 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 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.

The difference between Fn vdrop and Fn vdropl is that Fn vdrop locks the vnode interlock and then calls Fn vdropl while Fn vdropl expects the interlock to already be locked.

SEE ALSO

vbusy(9), vfree(9)

AUTHORS

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