Document vholdl(9)

No longer refer to vbusy(9) or vfree(9)
This commit is contained in:
davidc 2008-02-26 20:25:01 +00:00
parent 69ceadd39f
commit 8f9a5ef13f

View File

@ -38,13 +38,17 @@
.Ft void .Ft void
.Fn vhold "struct vnode *vp" .Fn vhold "struct vnode *vp"
.Ft void .Ft void
.Fn vholdl "struct vnode *vp"
.Ft void
.Fn vdrop "struct vnode *vp" .Fn vdrop "struct vnode *vp"
.Ft void .Ft void
.Fn vdropl "struct vnode *vp" .Fn vdropl "struct vnode *vp"
.Sh DESCRIPTION .Sh DESCRIPTION
The The
.Fn vhold .Fn vhold
function increments the and
.Fn vholdl
functions increment the
.Va v_holdcnt .Va v_holdcnt
of the given vnode. of the given vnode.
If the vnode has already been added to the free list and is still referenced, If the vnode has already been added to the free list and is still referenced,
@ -64,20 +68,16 @@ or
the system will panic. the system will panic.
If the vnode is no longer referenced, it will be freed. If the vnode is no longer referenced, it will be freed.
.Pp .Pp
The difference between .Fn vhold
and
.Fn vdrop .Fn vdrop
lock the vnode interlock while
.Fn vholdl
and and
.Fn vdropl .Fn vdropl
is that expect the interlock to already be held.
.Fn vdrop
locks the vnode interlock and then calls
.Fn vdropl
while
.Fn vdropl
expects the interlock to already be locked.
.Sh SEE ALSO .Sh SEE ALSO
.Xr vbusy 9 , .Xr vnode 9
.Xr vfree 9
.Sh AUTHORS .Sh AUTHORS
This manual page was written by This manual page was written by
.An Chad David Aq davidc@acns.ab.ca . .An Chad David Aq davidc@acns.ab.ca .