sx.9 (126202) | sx.9 (130582) |
---|---|
1.\" 2.\" Copyright (C) 2001 Jason Evans <jasone@FreeBSD.org>. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice(s), this list of conditions and the following disclaimer as --- 10 unchanged lines hidden (view full) --- 19.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20.\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 21.\" SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 22.\" CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH 25.\" DAMAGE. 26.\" | 1.\" 2.\" Copyright (C) 2001 Jason Evans <jasone@FreeBSD.org>. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice(s), this list of conditions and the following disclaimer as --- 10 unchanged lines hidden (view full) --- 19.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20.\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 21.\" SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 22.\" CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH 25.\" DAMAGE. 26.\" |
27.\" $FreeBSD: head/share/man/man9/sx.9 126202 2004-02-24 21:36:39Z jhb $ | 27.\" $FreeBSD: head/share/man/man9/sx.9 130582 2004-06-16 08:33:57Z ru $ |
28.\" 29.Dd August 14, 2001 30.Dt SX 9 31.Os 32.Sh NAME 33.Nm sx , 34.Nm sx_init , 35.Nm sx_destroy , --- 90 unchanged lines hidden (view full) --- 126.Pp 127When compiled with 128.Cd "options INVARIANTS" 129and 130.Cd "options INVARIANT_SUPPORT" , 131the 132.Fn sx_assert 133function tests | 28.\" 29.Dd August 14, 2001 30.Dt SX 9 31.Os 32.Sh NAME 33.Nm sx , 34.Nm sx_init , 35.Nm sx_destroy , --- 90 unchanged lines hidden (view full) --- 126.Pp 127When compiled with 128.Cd "options INVARIANTS" 129and 130.Cd "options INVARIANT_SUPPORT" , 131the 132.Fn sx_assert 133function tests |
134.Ar sx | 134.Fa sx |
135for the assertions specified in | 135for the assertions specified in |
136.Ar what | 136.Fa what , |
137and panics if they are not met. 138The following assertions are supported: 139.Bl -tag -width ".Dv SX_UNLOCKED" 140.It Dv SX_LOCKED 141Assert that the current thread has either a shared or an exclusive lock on the 142.Vt sx 143lock pointed to by the first argument. 144.It Dv SX_SLOCKED --- 57 unchanged lines hidden --- | 137and panics if they are not met. 138The following assertions are supported: 139.Bl -tag -width ".Dv SX_UNLOCKED" 140.It Dv SX_LOCKED 141Assert that the current thread has either a shared or an exclusive lock on the 142.Vt sx 143lock pointed to by the first argument. 144.It Dv SX_SLOCKED --- 57 unchanged lines hidden --- |