From 709a46133e85fa299b922622772e772a1f4acbc4 Mon Sep 17 00:00:00 2001 From: brueffer Date: Fri, 28 Mar 2008 21:30:37 +0000 Subject: [PATCH] Document lockmgr_waiters(9). Reviewed by: attilio --- share/man/man9/Makefile | 1 + share/man/man9/lock.9 | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/share/man/man9/Makefile b/share/man/man9/Makefile index 685c00b6ad7a..dd10f7cc442a 100644 --- a/share/man/man9/Makefile +++ b/share/man/man9/Makefile @@ -723,6 +723,7 @@ MLINKS+=lock.9 lockdestroy.9 \ lock.9 lockmgr_disown.9 \ lock.9 lockmgr_printinfo.9 \ lock.9 lockmgr_recursed.9 \ + lock.9 lockmgr_waiters.9 \ lock.9 lockstatus.9 MLINKS+=LOCK_PROFILING.9 MUTEX_PROFILING.9 MLINKS+=make_dev.9 destroy_dev.9 \ diff --git a/share/man/man9/lock.9 b/share/man/man9/lock.9 index dcb7a9d18d81..a2268d101213 100644 --- a/share/man/man9/lock.9 +++ b/share/man/man9/lock.9 @@ -26,7 +26,7 @@ .\" .\" $FreeBSD$ .\" -.Dd March 1, 2008 +.Dd March 28, 2008 .Dt LOCK 9 .Os .Sh NAME @@ -37,6 +37,7 @@ .Nm lockmgr_disown , .Nm lockmgr_printinfo , .Nm lockmgr_recursed , +.Nm lockmgr_waiters , .Nm lockstatus , .Nm lockmgr_assert .Nd "lockmgr family of functions" @@ -59,6 +60,8 @@ .Ft int .Fn lockmgr_recursed "struct lock *lkp" .Ft int +.Fn lockmgr_waiters "struct lock *lkp" +.Ft int .Fn lockstatus "struct lock *lkp" .Pp .Cd "options INVARIANTS" @@ -220,6 +223,10 @@ function returns true if the lock is recursed, 0 otherwise. .Pp The +.Fn lockmgr_waiters +function returns true if the lock has waiters, 0 otherwise. +.Pp +The .Fn lockstatus function returns the status of the lock in relation to the current thread. .Pp