Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/share/man/man9 Pull up revision 1.11 (requested by droc...
details: https://anonhg.NetBSD.org/src/rev/a514bd8b4fff
branches: netbsd-1-5
changeset: 493108:a514bd8b4fff
user: he <he%NetBSD.org@localhost>
date: Thu Jun 06 16:20:49 2002 +0000
description:
Pull up revision 1.11 (requested by drochner):
Correct some errors. Fixes PR#14367.
diffstat:
share/man/man9/lock.9 | 18 +++++++++++++-----
1 files changed, 13 insertions(+), 5 deletions(-)
diffs (48 lines):
diff -r c0981e465a07 -r a514bd8b4fff share/man/man9/lock.9
--- a/share/man/man9/lock.9 Thu Jun 06 16:04:19 2002 +0000
+++ b/share/man/man9/lock.9 Thu Jun 06 16:20:49 2002 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: lock.9,v 1.3.2.3 2001/08/16 17:03:05 tv Exp $
+.\" $NetBSD: lock.9,v 1.3.2.4 2002/06/06 16:20:49 he Exp $
.\"
.\" Copyright (c) 2000 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -58,7 +58,7 @@
.Ft int
.Fn simple_lock_try "struct simplelock *slock"
.Ft void
-.Fn simple_lock_unlock "struct simplelock *slock"
+.Fn simple_unlock "struct simplelock *slock"
.Ft void
.Fn simple_lock_freecheck "void *start" "void *end"
.Ft void
@@ -196,11 +196,15 @@
.It Fa lock
The lock.
.It Fa slock
-Simplelock interlock. The simplelock
+Simplelock interlock. If the flag LK_INTERLOCK is set in
+.Fa flags ,
.Fa slock
-is set by the caller. When the lock
+is a simplelock held by the caller. When the lock
.Fa lock
-is acquired, the simplelock is released.
+is acquired, the simplelock is released. If the flag LK_INTERLOCK is
+not set,
+.Fa slock
+is ignored.
.It Fa flags
Flags to specify the lock request type. In addition to the flags
specified above, the following flags are valid:
@@ -249,6 +253,10 @@
Attempt at recursive lock fails.
.It LK_SPIN
Lock spins instead of sleeping.
+.It LK_INTERLOCK
+Unlock the simplelock
+.Fa slock
+when the lock is acquired.
.El
.El
.It Fn lockstatus "lock"
Home |
Main Index |
Thread Index |
Old Index