mutex.9 (84306) | mutex.9 (89124) |
---|---|
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 84306 2001-10-01 16:09:29Z ru $ | 29.\" $FreeBSD: head/share/man/man9/mutex.9 89124 2002-01-09 11:43:48Z mpp $ |
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 , --- 309 unchanged lines hidden (view full) --- 347pointed to by the first argument. 348.It Dv MA_NOTOWNED 349Assert that the current thread 350does not hold the mutex 351pointed to by the first argument. 352.It Dv MA_RECURSED 353Assert that the current thread has recursed on the mutex 354pointed to by the first argument. | 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 , --- 309 unchanged lines hidden (view full) --- 347pointed to by the first argument. 348.It Dv MA_NOTOWNED 349Assert that the current thread 350does not hold the mutex 351pointed to by the first argument. 352.It Dv MA_RECURSED 353Assert that the current thread has recursed on the mutex 354pointed to by the first argument. |
355This assertion is only valid in conjuction with | 355This assertion is only valid in conjunction with |
356.Dv MA_OWNED . 357.It Dv MA_NOTRECURSED 358Assert that the current thread has not recursed on the mutex 359pointed to by the first argument. | 356.Dv MA_OWNED . 357.It Dv MA_NOTRECURSED 358Assert that the current thread has not recursed on the mutex 359pointed to by the first argument. |
360This assertion is only valid in conjuction with | 360This assertion is only valid in conjunction with |
361.Dv MA_OWNED . 362.El 363.Ss The Default Mutex Type 364Most kernel code should use the default lock type, 365.Dv MTX_DEF ; 366the default lock type will allow the thread 367to be disconnected from the CPU 368if it cannot get the lock. --- 107 unchanged lines hidden --- | 361.Dv MA_OWNED . 362.El 363.Ss The Default Mutex Type 364Most kernel code should use the default lock type, 365.Dv MTX_DEF ; 366the default lock type will allow the thread 367to be disconnected from the CPU 368if it cannot get the lock. --- 107 unchanged lines hidden --- |