sleepqueue.9 (134015) | sleepqueue.9 (140140) |
---|---|
1.\" Copyright (c) 2000-2004 John H. Baldwin <jhb@FreeBSD.org> 2.\" 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. --- 7 unchanged lines hidden (view full) --- 16.\" IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT, 17.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 18.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 19.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 20.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 22.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23.\" | 1.\" Copyright (c) 2000-2004 John H. Baldwin <jhb@FreeBSD.org> 2.\" 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. --- 7 unchanged lines hidden (view full) --- 16.\" IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT, 17.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 18.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 19.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 20.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 22.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23.\" |
24.\" $FreeBSD: head/share/man/man9/sleepqueue.9 134015 2004-08-19 12:46:02Z jhb $ | 24.\" $FreeBSD: head/share/man/man9/sleepqueue.9 140140 2005-01-12 21:48:25Z ru $ |
25.\" 26.Dd March 10, 2004 27.Dt SLEEPQUEUE 9 28.Os 29.Sh NAME 30.Nm init_sleepqueues , 31.Nm sleepq_abort , 32.Nm sleepq_add , --- 117 unchanged lines hidden (view full) --- 150.Fa wmesg 151parameter should be a short description of 152.Fa wchan . 153The 154.Fa flags 155parameter is a bitmask consisting of the type of sleep queue being slept on 156and zero or more optional flags. 157There are currently two types of sleep queues: | 25.\" 26.Dd March 10, 2004 27.Dt SLEEPQUEUE 9 28.Os 29.Sh NAME 30.Nm init_sleepqueues , 31.Nm sleepq_abort , 32.Nm sleepq_add , --- 117 unchanged lines hidden (view full) --- 150.Fa wmesg 151parameter should be a short description of 152.Fa wchan . 153The 154.Fa flags 155parameter is a bitmask consisting of the type of sleep queue being slept on 156and zero or more optional flags. 157There are currently two types of sleep queues: |
158.Bl -tag -width SLEEPQ_CONDVAR | 158.Bl -tag -width ".Dv SLEEPQ_CONDVAR" |
159.It Dv SLEEPQ_CONDVAR 160A sleep queue used to implement condition variables. 161.It Dv SLEEPQ_MSLEEP 162A sleep queue used to implement 163.Xr msleep 9 , 164.Xr wakeup 9 165and 166.Xr wakeup_one 9 . 167.El 168.Pp 169There is currently only one optional flag: | 159.It Dv SLEEPQ_CONDVAR 160A sleep queue used to implement condition variables. 161.It Dv SLEEPQ_MSLEEP 162A sleep queue used to implement 163.Xr msleep 9 , 164.Xr wakeup 9 165and 166.Xr wakeup_one 9 . 167.El 168.Pp 169There is currently only one optional flag: |
170.Bl -tag -width SLEEPQ_INTERRUPTIBLE | 170.Bl -tag -width ".Dv SLEEPQ_INTERRUPTIBLE" |
171.It Dv SLEEPQ_INTERRUPTIBLE 172The current thread is entering an interruptible sleep. 173.El 174.Pp 175A timeout on the sleep may be specified by calling 176.Fn sleepq_set_timeout 177after 178.Fn sleepq_add . --- 131 unchanged lines hidden --- | 171.It Dv SLEEPQ_INTERRUPTIBLE 172The current thread is entering an interruptible sleep. 173.El 174.Pp 175A timeout on the sleep may be specified by calling 176.Fn sleepq_set_timeout 177after 178.Fn sleepq_add . --- 131 unchanged lines hidden --- |