diff options
author | Anil Madhavapeddy <avsm@cvs.openbsd.org> | 2003-03-18 09:57:54 +0000 |
---|---|---|
committer | Anil Madhavapeddy <avsm@cvs.openbsd.org> | 2003-03-18 09:57:54 +0000 |
commit | 34b5fa5765b7a4549d36a1cfbc154a203018e687 (patch) | |
tree | 92ced77a1f89edc9102d9517723fa18889b1b17d | |
parent | 6bf8818813199b04124889ed2c9a9f7471166115 (diff) |
- document the 'struct proc p' 4th argument to lockmgr
- put the lockmgr argument descriptions in order
ok miod@, art@
-rw-r--r-- | share/man/man9/lock.9 | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/share/man/man9/lock.9 b/share/man/man9/lock.9 index 7581938a37c..259705bc86d 100644 --- a/share/man/man9/lock.9 +++ b/share/man/man9/lock.9 @@ -1,4 +1,4 @@ -.\" $OpenBSD: lock.9,v 1.6 2003/03/07 06:21:37 david Exp $ +.\" $OpenBSD: lock.9,v 1.7 2003/03/18 09:57:53 avsm Exp $ .\" $NetBSD: lock.9,v 1.12 2001/11/01 01:13:43 wiz Exp $ .\" .\" Copyright (c) 2000 The NetBSD Foundation, Inc. @@ -179,24 +179,12 @@ Processes should sleep, then return failure when acquiring the lock. Processes can acquire the lock recursively. .El .El -.It Fn lockmgr "lock" "flags" "slock" +.It Fn lockmgr "lock" "flags" "slock" "p" Set, change or release a lock according to the parameters provided. Arguments are as follows: .Bl -tag -width compact .It Fa lock The lock. -.It Fa slock -Simplelock interlock. -If the flag LK_INTERLOCK is set in -.Fa flags , -.Fa slock -is a simplelock held by the caller. -When the lock -.Fa lock -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: @@ -255,6 +243,21 @@ Unlock the simplelock .Fa slock when the lock is acquired. .El +.It Fa slock +Simplelock interlock. +If the flag LK_INTERLOCK is set in +.Fa flags , +.Fa slock +is a simplelock held by the caller. +When the lock +.Fa lock +is acquired, the simplelock is released. +If the flag LK_INTERLOCK is not set, +.Fa slock +is ignored. +.It Fa p +Should always point to the current process +.Va curproc . .El .It Fn lockstatus "lock" Determine the status of lock |