Document vholdl(9)
No longer refer to vbusy(9) or vfree(9)
This commit is contained in:
parent
96872be38c
commit
b03ee585b4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=176606
@ -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 .
|
||||
|
Loading…
Reference in New Issue
Block a user