On Sun, Sep 16, 2012 at 10:54:40AM +0059, Jason McIntyre wrote:
> 
> thanks, i think that reads better too. ok?
> jmc
> 

just spotted that the name description (Nd) for this file is now out of
date. updated accordingly (from freebsd).

ok?
jmc

Index: Makefile
===================================================================
RCS file: /cvs/src/share/man/man9/Makefile,v
retrieving revision 1.171
diff -u -r1.171 Makefile
--- Makefile    21 Jun 2012 18:02:21 -0000      1.171
+++ Makefile    16 Sep 2012 16:17:05 -0000
@@ -373,5 +373,6 @@
 MLINKS+=workq_add_task.9 workq_create.9 \
        workq_add_task.9 workq_queue_task.9 \
        workq_add_task.9 workq_destroy.9
+MLINKS+=vhold.9 vdrop.9
 
 .include <bsd.prog.mk>
Index: vhold.9
===================================================================
RCS file: /cvs/src/share/man/man9/vhold.9,v
retrieving revision 1.6
diff -u -r1.6 vhold.9
--- vhold.9     15 Dec 2009 07:34:58 -0000      1.6
+++ vhold.9     16 Sep 2012 16:17:05 -0000
@@ -31,13 +31,16 @@
 .Dt VHOLD 9
 .Os
 .Sh NAME
-.Nm vhold
-.Nd acquire a hold on a vnode
+.Nm vhold ,
+.Nm vdrop
+.Nd acquire/release a hold on a vnode
 .Sh SYNOPSIS
 .Fd #include <sys/param.h>
 .Fd #include <sys/vnode.h>
 .Ft void
 .Fn vhold "struct vnode *vp"
+.Ft void
+.Fn vdrop "struct vnode *vp"
 .Sh DESCRIPTION
 The
 .Fn vhold
@@ -50,6 +53,18 @@
 .Va v_usecount
 are both zero, it will be removed from the free list and
 added to the vnode hold list.
+.Pp
+The
+.Fn vdrop
+function decrements the
+.Va v_holdcnt
+of the given vnode.
+If the vnode is on the vnode hold list and its
+.Va v_holdcnt
+and
+.Va v_usecount
+are both zero, it will be removed from the vnode hold list and
+added to the freed list.
 .Sh SEE ALSO
 .Xr vnode 9
 .Sh AUTHORS

Reply via email to