mtx is not an interlock here, merely convenience.

This commit is contained in:
pooka 2008-01-02 16:51:32 +00:00
parent ad809afe5c
commit b5071eca2f
1 changed files with 7 additions and 8 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: kpause.9,v 1.2 2007/10/28 21:33:23 rjs Exp $
.\" $NetBSD: kpause.9,v 1.3 2008/01/02 16:51:32 pooka Exp $
.\"
.\" Copyright (c) 2006, 2007 The NetBSD Foundation, Inc.
.\" All rights reserved.
@ -35,7 +35,7 @@
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
.\" ------------------------------------------------------------
.Dd July 18, 2007
.Dd January 2, 2008
.Dt KPAUSE 9
.Os
.\" ------------------------------------------------------------
@ -91,15 +91,14 @@ one suitable for
.Pp
Zero means no timeout.
.It Fa mtx
Specifies a kernel mutex to be used as an interlock, and must be held by the
calling LWP on entry to
.Fn kpause .
It will be released once the LWP has prepared to sleep, and will be reacquired
Convenience and symmetry with other synchronization operations.
If not
.Dv NULL ,
.Fa mtx
will be released once the LWP has prepared to sleep, and will be reacquired
before
.Fn kpause
returns.
.Fn kpause
will release it before sleeping and acquire before returning.
.El
.\" ------------------------------------------------------------
.Sh RETURN VALUES