diff options
Diffstat (limited to 'share/man/man9/mutex.9')
-rw-r--r-- | share/man/man9/mutex.9 | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/share/man/man9/mutex.9 b/share/man/man9/mutex.9 index 82a6fedd328..b5f13f61c3b 100644 --- a/share/man/man9/mutex.9 +++ b/share/man/man9/mutex.9 @@ -1,4 +1,4 @@ -.\" $OpenBSD: mutex.9,v 1.16 2013/07/17 20:21:54 schwarze Exp $ +.\" $OpenBSD: mutex.9,v 1.17 2013/12/09 03:14:30 dlg Exp $ .\" .\" Copyright (c) 2005 Pedro Martelletto <pedro@ambientworks.net> .\" All rights reserved. @@ -15,7 +15,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: July 17 2013 $ +.Dd $Mdocdate: December 9 2013 $ .Dt MUTEX 9 .Os .Sh NAME @@ -37,6 +37,7 @@ .Fn mtx_leave "struct mutex *mtxp" .Fn MUTEX_ASSERT_LOCKED "struct mutex *mtxp" .Fn MUTEX_ASSERT_UNLOCKED "struct mutex *mtxp" +.Fn MUTEX_INITIALIZER "int wantipl" .Sh DESCRIPTION The .Nm @@ -74,6 +75,14 @@ and .Fn MUTEX_ASSERT_UNLOCKED macros may be used to assert that a mutex is held locked or unlocked by the current CPU. +.Pp +A mutex declaration may be initialised with the +.Fn MUTEX_INITIALIZER +macro. +When acquired, the mutex will cause the processor interrupt level to be raised +to +.Fa wantipl +if necessary. .Sh SEE ALSO .Xr lockmgr 9 , .Xr rwlock 9 , |