diff options
author | Pedro Martelletto <pedro@cvs.openbsd.org> | 2005-11-19 02:18:03 +0000 |
---|---|---|
committer | Pedro Martelletto <pedro@cvs.openbsd.org> | 2005-11-19 02:18:03 +0000 |
commit | 4e00bfe9e4fce563a74dcd487149539b6bc02ba9 (patch) | |
tree | a134970c4687287588758bb78c439e9cde819bb9 /share/man/man9 | |
parent | 16017b33d1fad6b6fd295f39b365b33719b42ae9 (diff) |
Remove unnecessary lockmgr() archaism that was costing too much in terms
of panics and bugfixes. Access curproc directly, do not expect a process
pointer as an argument. Should fix many "process context required" bugs.
Incentive and okay millert@, okay marc@. Various testing, thanks.
Diffstat (limited to 'share/man/man9')
-rw-r--r-- | share/man/man9/lock.9 | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/share/man/man9/lock.9 b/share/man/man9/lock.9 index 9b7352f0cd4..f2d07c4f637 100644 --- a/share/man/man9/lock.9 +++ b/share/man/man9/lock.9 @@ -1,4 +1,4 @@ -.\" $OpenBSD: lock.9,v 1.10 2005/02/20 15:14:05 jmc Exp $ +.\" $OpenBSD: lock.9,v 1.11 2005/11/19 02:18:00 pedro Exp $ .\" $NetBSD: lock.9,v 1.12 2001/11/01 01:13:43 wiz Exp $ .\" .\" Copyright (c) 2000 The NetBSD Foundation, Inc. @@ -60,8 +60,7 @@ .Fn lockinit "struct lock *lock" "int prio" "const char *wmesg" \ "int timo" "int flags" .Ft int -.Fn lockmgr "struct lock *lock" "u_int flags" "struct simplelock *slock" \ -"struct proc *p" +.Fn lockmgr "struct lock *lock" "u_int flags" "struct simplelock *slock" .Ft int .Fn lockstatus "struct lock *lock" .Ft void @@ -179,7 +178,7 @@ Processes should sleep, then return failure when acquiring the lock. Processes can acquire the lock recursively. .El .El -.It Fn lockmgr "lock" "flags" "slock" "p" +.It Fn lockmgr "lock" "flags" "slock" Set, change or release a lock according to the parameters provided. Arguments are as follows: .Bl -tag -width compact @@ -255,9 +254,6 @@ 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 |