1 .\" $NetBSD: kpause.9,v 1.4 2008/04/30 13:10:58 martin Exp $
3 .\" Copyright (c) 2006, 2007 The NetBSD Foundation, Inc.
4 .\" All rights reserved.
6 .\" This code is derived from software contributed to The NetBSD Foundation
9 .\" Redistribution and use in source and binary forms, with or without
10 .\" modification, are permitted provided that the following conditions
12 .\" 1. Redistributions of source code must retain the above copyright
13 .\" notice, this list of conditions and the following disclaimer.
14 .\" 2. Redistributions in binary form must reproduce the above copyright
15 .\" notice, this list of conditions and the following disclaimer in the
16 .\" documentation and/or other materials provided with the distribution.
18 .\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
19 .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
20 .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21 .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
22 .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23 .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24 .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25 .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26 .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28 .\" POSSIBILITY OF SUCH DAMAGE.
30 .\" ------------------------------------------------------------
34 .\" ------------------------------------------------------------
37 .Nd make the calling LWP sleep
38 .\" ------------------------------------------------------------
41 .\" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
44 "const char *wmesg" "bool intr" "int timeo" "kmutex_t *mtx"
45 .\" ------------------------------------------------------------
48 makes the calling LWP sleep.
50 .Xr cv_timedwait_sig 9
51 without the corresponding
55 can wake up spontaneously.
56 Callers should prepare to handle it.
60 Specifies a string of no more than 8 characters that describes
61 the resource or condition associated with the call of
63 The kernel does not use this argument directly but makes it available for
68 If true, sleep interruptably.
69 If the LWP receives a signal, or is interrupted by another condition such
70 as its containing process exiting, the wait is ended early and an error
74 It is an architecture and system dependent value related to the number of
75 clock interrupts per second.
81 macro can be used to convert a timeout expressed in milliseconds to
85 Zero means no timeout.
87 Convenience and symmetry with other synchronization operations.
91 will be released once the LWP has prepared to sleep, and will be reacquired
96 .\" ------------------------------------------------------------
99 returns 0 when waking up spontaneously.
101 It returns an error number.
102 .\" ------------------------------------------------------------
105 .It Bq Er EWOULDBLOCK
109 returned as a result of a signal with
114 returned due to other reasons.
115 Typically as a result of a signal without
119 .\" ------------------------------------------------------------