On 6/28/06, Bill Marquette <[EMAIL PROTECTED]> wrote:
Looks like lockinit() was changed in 1.16 of sys/kern/kern_lock.c and the man page wasn't updated ;)
Actually, I found another buglet in the man page...lockmgr() no longer takes a thread argument. here's a new diff --Bill Index: lock.9 =================================================================== RCS file: /home/dcvs/src/share/man/man9/lock.9,v retrieving revision 1.4 diff -u -r1.4 lock.9 --- lock.9 23 Apr 2006 16:23:12 -0000 1.4 +++ lock.9 26 Jun 2006 22:32:34 -0000 @@ -41,13 +41,13 @@ .In sys/types.h .In sys/lock.h .Ft void -.Fn lockinit "struct lock *lkp" "int prio" "char *wmesg" "int timo" "int flags" +.Fn lockinit "struct lock *lkp" "char *wmesg" "int timo" "int flags" .Ft int .Fn lockcount "struct lock *lkp" .Ft int .Fn lockcountnb "struct lock *lkp" .Ft int -.Fn lockmgr "struct lock *lkp" "u_int flags" "struct thread *td" +.Fn lockmgr "struct lock *lkp" "u_int flags" .Ft int .Fn lockstatus "struct lock *lkp" "struct thread *td" .Ft void @@ -61,9 +61,6 @@ .Bl -tag -width ".Fa wmesg" .It Fa lkp A pointer to the lock to initialize. -.It Fa prio -The priority passed to -.Xr tsleep 9 . .It Fa wmesg The lock message. This is used for both debugging output and @@ -155,11 +152,6 @@ Allow recursion on an exclusive lock. For every lock there must be a release. .El -.It Fa td -A thread responsible for this call. -.Dv NULL -becomes -.Dv LK_KERNPROC . .El .Pp The
