Document new 'what' value for sx_assert(9).

PS. There is a inconsistency in this manual page, because in
    non-WITNESS case sx_assert(9) does not panics, it only prints
    the warning. I haven't fixed this, because jhb@ is planing to
    replace those printf()s with panic()s.

Reviewed by:	jhb
Approved by:	jhb, scottl (mentor)
This commit is contained in:
Pawel Jakub Dawidek 2004-02-04 08:24:05 +00:00
parent 19b0efd32d
commit 8d719eb22e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=125422

View File

@ -136,7 +136,7 @@ for the assertions specified in
.Ar what
and panics if they are not met.
The following assertions are supported:
.Bl -tag -width ".Dv SX_XLOCKED"
.Bl -tag -width ".Dv SX_UNLOCKED"
.It Dv SX_LOCKED
Assert that the current thread has either a shared or an exclusive lock on the
.Vt sx
@ -151,6 +151,11 @@ Assert that the current thread has an exclusive lock on the
.Vt sx
lock pointed to
by the first argument.
.It Dv SX_UNLOCKED
Assert that the current thread has no lock on the
.Vt sx
lock pointed to
by the first argument.
.El
.Pp
The