sx.9 (193011) | sx.9 (227588) |
---|---|
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 193011 2009-05-29 01:49:27Z attilio $ | 27.\" $FreeBSD: head/share/man/man9/sx.9 227588 2011-11-16 21:51:17Z pjd $ |
28.\" | 28.\" |
29.Dd May 28, 2009 | 29.Dd November 16, 2011 |
30.Dt SX 9 31.Os 32.Sh NAME 33.Nm sx , 34.Nm sx_init , 35.Nm sx_init_flags , 36.Nm sx_destroy , 37.Nm sx_slock , --- 45 unchanged lines hidden (view full) --- 83.Fn sx_try_upgrade "struct sx *sx" 84.Ft void 85.Fn sx_downgrade "struct sx *sx" 86.Ft int 87.Fn sx_sleep "void *chan" "struct sx *sx" "int priority" "const char *wmesg" "int timo" 88.Ft "struct thread *" 89.Fn sx_xholder "struct sx *sx" 90.Ft int | 30.Dt SX 9 31.Os 32.Sh NAME 33.Nm sx , 34.Nm sx_init , 35.Nm sx_init_flags , 36.Nm sx_destroy , 37.Nm sx_slock , --- 45 unchanged lines hidden (view full) --- 83.Fn sx_try_upgrade "struct sx *sx" 84.Ft void 85.Fn sx_downgrade "struct sx *sx" 86.Ft int 87.Fn sx_sleep "void *chan" "struct sx *sx" "int priority" "const char *wmesg" "int timo" 88.Ft "struct thread *" 89.Fn sx_xholder "struct sx *sx" 90.Ft int |
91.Fn sx_xlocked "struct sx *sx" | 91.Fn sx_xlocked "const struct sx *sx" |
92.Pp 93.Cd "options INVARIANTS" 94.Cd "options INVARIANT_SUPPORT" 95.Ft void | 92.Pp 93.Cd "options INVARIANTS" 94.Cd "options INVARIANT_SUPPORT" 95.Ft void |
96.Fn sx_assert "struct sx *sx" "int what" | 96.Fn sx_assert "const struct sx *sx" "int what" |
97.In sys/kernel.h 98.Fn SX_SYSINIT "name" "struct sx *sx" "const char *description" 99.Sh DESCRIPTION 100Shared/exclusive locks are used to protect data that are read far more often 101than they are written. 102Shared/exclusive locks do not implement priority propagation like mutexes and 103reader/writer locks to prevent priority inversions, so 104shared/exclusive locks should be used prudently. --- 224 unchanged lines hidden --- | 97.In sys/kernel.h 98.Fn SX_SYSINIT "name" "struct sx *sx" "const char *description" 99.Sh DESCRIPTION 100Shared/exclusive locks are used to protect data that are read far more often 101than they are written. 102Shared/exclusive locks do not implement priority propagation like mutexes and 103reader/writer locks to prevent priority inversions, so 104shared/exclusive locks should be used prudently. --- 224 unchanged lines hidden --- |