Document vholdl(9)

No longer refer to vbusy(9) or vfree(9)
This commit is contained in:
Chad David 2008-02-26 20:25:01 +00:00
parent 96872be38c
commit b03ee585b4

View File

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