From cd896f694b48aaa573c75d93f53bdd21fd45fc92 Mon Sep 17 00:00:00 2001 From: jhb Date: Mon, 24 Jun 2013 18:40:51 +0000 Subject: [PATCH] MFC 252037: Document RA_RECURSED and RA_NOTRECURSED. git-svn-id: svn://svn.freebsd.org/base/stable/9@252168 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- share/man/man9/rwlock.9 | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/share/man/man9/rwlock.9 b/share/man/man9/rwlock.9 index 5039a42ad..b585294d1 100644 --- a/share/man/man9/rwlock.9 +++ b/share/man/man9/rwlock.9 @@ -24,7 +24,7 @@ .\" .\" $FreeBSD$ .\" -.Dd April 1, 2008 +.Dd June 20, 2013 .Dt RWLOCK 9 .Os .Sh NAME @@ -256,7 +256,7 @@ with and .Cd "options INVARIANT_SUPPORT" , the kernel will panic. -Currently the following assertions are supported: +Currently the following base assertions are supported: .Bl -tag -width ".Dv RA_UNLOCKED" .It Dv RA_LOCKED Assert that current thread holds either a shared or exclusive lock @@ -272,6 +272,20 @@ Assert that current thread holds an exclusive lock of Assert that current thread holds neither a shared nor exclusive lock of .Fa rw . .El +.Pp +In addition, one of the following optional flags may be specified with +.Dv RA_LOCKED , +.Dv RA_RLOCKED , +or +.Dv RA_WLOCKED : +.Bl -tag -width ".Dv RA_NOTRECURSED" +.It Dv RA_RECURSED +Assert that the current thread holds a recursive lock of +.Fa rw . +.It Dv RA_NOTRECURSED +Assert that the current thread does not hold a recursive lock of +.Fa rw . +.El .El .Sh SEE ALSO .Xr locking 9 , -- 2.45.0