mutex.9 (124965) | mutex.9 (130582) |
---|---|
1.\" 2.\" Copyright (c) 1998 Berkeley Software Design, Inc. 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, this list of conditions and the following disclaimer. --- 12 unchanged lines hidden (view full) --- 21.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26.\" SUCH DAMAGE. 27.\" 28.\" from BSDI $Id: mutex.4,v 1.1.2.3 1998/04/27 22:53:13 ewv Exp $ | 1.\" 2.\" Copyright (c) 1998 Berkeley Software Design, Inc. 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, this list of conditions and the following disclaimer. --- 12 unchanged lines hidden (view full) --- 21.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26.\" SUCH DAMAGE. 27.\" 28.\" from BSDI $Id: mutex.4,v 1.1.2.3 1998/04/27 22:53:13 ewv Exp $ |
29.\" $FreeBSD: head/share/man/man9/mutex.9 124965 2004-01-25 12:24:23Z des $ | 29.\" $FreeBSD: head/share/man/man9/mutex.9 130582 2004-06-16 08:33:57Z ru $ |
30.\" 31.Dd February 12, 2001 32.Dt MUTEX 9 33.Os 34.Sh NAME 35.Nm mutex , 36.Nm mtx_init , 37.Nm mtx_lock , --- 291 unchanged lines hidden (view full) --- 329.Fa mutex 330is recursed. 331This check should only be made if the running thread already owns 332.Fa mutex . 333.Pp 334The 335.Fn mtx_assert 336function allows assertions specified in | 30.\" 31.Dd February 12, 2001 32.Dt MUTEX 9 33.Os 34.Sh NAME 35.Nm mutex , 36.Nm mtx_init , 37.Nm mtx_lock , --- 291 unchanged lines hidden (view full) --- 329.Fa mutex 330is recursed. 331This check should only be made if the running thread already owns 332.Fa mutex . 333.Pp 334The 335.Fn mtx_assert 336function allows assertions specified in |
337.Ar what | 337.Fa what |
338to be made about 339.Fa mutex . 340If the assertions are not true and the kernel is compiled with 341.Cd "options INVARIANTS" 342and 343.Cd "options INVARIANT_SUPPORT" , 344the kernel will panic. 345Currently the following assertions are supported: --- 148 unchanged lines hidden (view full) --- 494.Xr copyout 9 , 495.Xr uiomove 9 , 496.Xr fuword 9 , 497etc. 498No locks are needed when calling these functions. 499.Sh SEE ALSO 500.Xr condvar 9 , 501.Xr msleep 9 , | 338to be made about 339.Fa mutex . 340If the assertions are not true and the kernel is compiled with 341.Cd "options INVARIANTS" 342and 343.Cd "options INVARIANT_SUPPORT" , 344the kernel will panic. 345Currently the following assertions are supported: --- 148 unchanged lines hidden (view full) --- 494.Xr copyout 9 , 495.Xr uiomove 9 , 496.Xr fuword 9 , 497etc. 498No locks are needed when calling these functions. 499.Sh SEE ALSO 500.Xr condvar 9 , 501.Xr msleep 9 , |
502.Xr MUTEX_PROFILING 9 , | |
503.Xr mtx_pool 9 , | 502.Xr mtx_pool 9 , |
503.Xr MUTEX_PROFILING 9 , |
|
504.Xr panic 9 , 505.Xr sema 9 , 506.Xr sx 9 507.Sh HISTORY 508These 509functions appeared in 510.Bsx 4.1 511and 512.Fx 5.0 . | 504.Xr panic 9 , 505.Xr sema 9 , 506.Xr sx 9 507.Sh HISTORY 508These 509functions appeared in 510.Bsx 4.1 511and 512.Fx 5.0 . |