diff options
author | attilio <attilio@FreeBSD.org> | 2008-03-01 20:36:50 +0000 |
---|---|---|
committer | attilio <attilio@FreeBSD.org> | 2008-03-01 20:36:50 +0000 |
commit | 0d9e146f6b243f9d858f4001b1956fbb996a607c (patch) | |
tree | 8b1eedcc20212bc47f7f0fe8956165a2aa9a669c /share | |
parent | 037f2dd06505591680edd877a1523be3db805dbb (diff) | |
download | FreeBSD-src-0d9e146f6b243f9d858f4001b1956fbb996a607c.zip FreeBSD-src-0d9e146f6b243f9d858f4001b1956fbb996a607c.tar.gz |
- Add the informations for lockmgr_args(9)
- Sort rightly lockstatus(9) in the manpage
Diffstat (limited to 'share')
-rw-r--r-- | share/man/man9/lock.9 | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/share/man/man9/lock.9 b/share/man/man9/lock.9 index c9c648a..1da3b71 100644 --- a/share/man/man9/lock.9 +++ b/share/man/man9/lock.9 @@ -34,6 +34,7 @@ .Nm lockdestroy , .Nm lockmgr , .Nm lockstatus , +.Nm lockmgr_args , .Nm lockmgr_disown , .Nm lockmgr_printinfo , .Nm lockmgr_recursed , @@ -50,13 +51,15 @@ .Ft int .Fn lockmgr "struct lock *lkp" "u_int flags" "struct mtx *interlkp" .Ft int -.Fn lockstatus "struct lock *lkp" +.Fn lockmgr_args "struct lock *lkp" "u_int flags" "struct mtx *interlkp" "const char *wmesg" "int prio" "int timo" .Ft void .Fn lockmgr_disown "struct lock *lkp" .Ft void .Fn lockmgr_printinfo "struct lock *lkp" .Ft int .Fn lockmgr_recursed "struct lock *lkp" +.Ft int +.Fn lockstatus "struct lock *lkp" .Pp .Cd "options INVARIANTS" .Cd "options INVARIANT_SUPPORT" @@ -182,8 +185,20 @@ See .El .Pp The -.Fn lockstatus -function returns the status of the lock in relation to the current thread. +.Fn lockmgr_args +function works like +.Fn lockmgr +but accepting a +.Fa wmesg , +.Fa timo +and +.Fa prio +on a per-instance basis. The specified values will override the default +ones, but this can still be used passing, respectively, +.Dv LK_WMESG_DEFAULT , +.Dv LK_PRIO_DEFAULT +and +.Dv LK_TIMO_DEFAULT . .Pp The .Fn lockmgr_disown @@ -203,6 +218,10 @@ The function returns true if the lock is recursed, 0 otherwise. .Pp +The +.Fn lockstatus +function returns the status of the lock in relation to the current thread. +.Pp When compiled with .Cd "options INVARIANTS" and |