Document RA_RECURSED and RA_NOTRECURSED.
MFC after: 3 days
This commit is contained in:
parent
dc017e3401
commit
a2feb19b26
@ -24,7 +24,7 @@
|
|||||||
.\"
|
.\"
|
||||||
.\" $FreeBSD$
|
.\" $FreeBSD$
|
||||||
.\"
|
.\"
|
||||||
.Dd November 16, 2011
|
.Dd June 20, 2013
|
||||||
.Dt RWLOCK 9
|
.Dt RWLOCK 9
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -254,7 +254,7 @@ with
|
|||||||
and
|
and
|
||||||
.Cd "options INVARIANT_SUPPORT" ,
|
.Cd "options INVARIANT_SUPPORT" ,
|
||||||
the kernel will panic.
|
the kernel will panic.
|
||||||
Currently the following assertions are supported:
|
Currently the following base assertions are supported:
|
||||||
.Bl -tag -width ".Dv RA_UNLOCKED"
|
.Bl -tag -width ".Dv RA_UNLOCKED"
|
||||||
.It Dv RA_LOCKED
|
.It Dv RA_LOCKED
|
||||||
Assert that current thread holds either a shared or exclusive lock
|
Assert that current thread holds either a shared or exclusive lock
|
||||||
@ -270,6 +270,20 @@ Assert that current thread holds an exclusive lock of
|
|||||||
Assert that current thread holds neither a shared nor exclusive lock of
|
Assert that current thread holds neither a shared nor exclusive lock of
|
||||||
.Fa rw .
|
.Fa rw .
|
||||||
.El
|
.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
|
.El
|
||||||
.Sh SEE ALSO
|
.Sh SEE ALSO
|
||||||
.Xr locking 9 ,
|
.Xr locking 9 ,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user