sleepqueue.9 (2aaf9152a852aba9eb2036b95f4948ee77988826) sleepqueue.9 (f91aa773bea2bd0dff2d021c2d78fe78da78d52d)
1.\" Copyright (c) 2000-2004 John H. Baldwin <jhb@FreeBSD.org>
2.\"
3.\" Redistribution and use in source and binary forms, with or without
4.\" modification, are permitted provided that the following conditions
5.\" are met:
6.\" 1. Redistributions of source code must retain the above copyright
7.\" notice, this list of conditions and the following disclaimer.
8.\" 2. Redistributions in binary form must reproduce the above copyright

--- 8 unchanged lines hidden (view full) ---

17.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
18.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
19.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
20.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
21.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
22.\"
23.\" $FreeBSD$
24.\"
1.\" Copyright (c) 2000-2004 John H. Baldwin <jhb@FreeBSD.org>
2.\"
3.\" Redistribution and use in source and binary forms, with or without
4.\" modification, are permitted provided that the following conditions
5.\" are met:
6.\" 1. Redistributions of source code must retain the above copyright
7.\" notice, this list of conditions and the following disclaimer.
8.\" 2. Redistributions in binary form must reproduce the above copyright

--- 8 unchanged lines hidden (view full) ---

17.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
18.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
19.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
20.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
21.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
22.\"
23.\" $FreeBSD$
24.\"
25.Dd September 22, 2014
25.Dd June 19, 2019
26.Dt SLEEPQUEUE 9
27.Os
28.Sh NAME
29.Nm init_sleepqueues ,
30.Nm sleepq_abort ,
31.Nm sleepq_add ,
32.Nm sleepq_alloc ,
33.Nm sleepq_broadcast ,

--- 251 unchanged lines hidden (view full) ---

285.Pp
286A sleeping thread is normally resumed by the
287.Fn sleepq_broadcast
288and
289.Fn sleepq_signal
290functions.
291The
292.Fn sleepq_signal
26.Dt SLEEPQUEUE 9
27.Os
28.Sh NAME
29.Nm init_sleepqueues ,
30.Nm sleepq_abort ,
31.Nm sleepq_add ,
32.Nm sleepq_alloc ,
33.Nm sleepq_broadcast ,

--- 251 unchanged lines hidden (view full) ---

285.Pp
286A sleeping thread is normally resumed by the
287.Fn sleepq_broadcast
288and
289.Fn sleepq_signal
290functions.
291The
292.Fn sleepq_signal
293function awakens the highest priority thread sleeping on a wait channel while
293function awakens the highest priority thread sleeping on a wait channel
294(if SLEEPQ_UNFAIR flag is set, thread that went to sleep recently) while
294.Fn sleepq_broadcast
295awakens all of the threads sleeping on a wait channel.
296The
297.Fa wchan
298argument specifics which wait channel to awaken.
299The
300.Fa flags
301argument must match the sleep queue type contained in the

--- 88 unchanged lines hidden ---
295.Fn sleepq_broadcast
296awakens all of the threads sleeping on a wait channel.
297The
298.Fa wchan
299argument specifics which wait channel to awaken.
300The
301.Fa flags
302argument must match the sleep queue type contained in the

--- 88 unchanged lines hidden ---