Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/man/man9 vn_lock: describe flags, remove reference to ...



details:   https://anonhg.NetBSD.org/src/rev/7ee28d9294ed
branches:  trunk
changeset: 761497:7ee28d9294ed
user:      rmind <rmind%NetBSD.org@localhost>
date:      Sun Jan 30 07:04:48 2011 +0000

description:
vn_lock: describe flags, remove reference to lockmgr.

diffstat:

 share/man/man9/vnsubr.9 |  21 ++++++++++++++++-----
 1 files changed, 16 insertions(+), 5 deletions(-)

diffs (42 lines):

diff -r f00e89e4fcca -r 7ee28d9294ed share/man/man9/vnsubr.9
--- a/share/man/man9/vnsubr.9   Sun Jan 30 07:02:23 2011 +0000
+++ b/share/man/man9/vnsubr.9   Sun Jan 30 07:04:48 2011 +0000
@@ -1,4 +1,4 @@
-.\"     $NetBSD: vnsubr.9,v 1.40 2010/12/02 12:54:13 wiz Exp $
+.\"     $NetBSD: vnsubr.9,v 1.41 2011/01/30 07:04:48 rmind Exp $
 .\"
 .\" Copyright (c) 2001, 2005, 2006 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -27,7 +27,7 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd June 18, 2010
+.Dd January 30, 2010
 .Dt VNSUBR 9
 .Os
 .Sh NAME
@@ -127,9 +127,20 @@
 .Fa vp .
 The argument
 .Fa flags
-specifies the
-.Xr lockmgr 9
-flags used to lock the vnode.
+specifies the flags used to lock the vnode.
+There are the following flags:
+.Pp
+.Bl -tag -offset indent -width LK_EXCLUSIVE -compact
+.It LK_SHARED
+shared lock
+.It LK_EXCLUSIVE
+exclusive lock
+.It LK_NOWAIT
+do not sleep to await lock
+.It LK_RETRY
+retry lock operation until locked
+.El
+.Pp
 If the operation is successful zero is returned, otherwise an
 appropriate error code is returned.
 The vnode interlock



Home | Main Index | Thread Index | Old Index