1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>Waking Up Queued Tasks</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Unreliable Guide To Hacking The Linux Kernel"><link rel="up" href="queues.html" title="Chapter&#160;7.&#160;Wait Queues include/linux/wait.h"><link rel="prev" href="queue-waitqueue.html" title="Queuing"><link rel="next" href="atomic-ops.html" title="Chapter&#160;8.&#160;Atomic Operations"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Waking Up Queued Tasks</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="queue-waitqueue.html">Prev</a>&#160;</td><th width="60%" align="center">Chapter&#160;7.&#160;Wait Queues
2   <code class="filename">include/linux/wait.h</code>
3  </th><td width="20%" align="right">&#160;<a accesskey="n" href="atomic-ops.html">Next</a></td></tr></table><hr></div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="queue-waking"></a>Waking Up Queued Tasks</h2></div></div></div><p>
4    Call <code class="function">wake_up()</code>
5
6    <code class="filename">include/linux/wait.h</code>;,
7    which will wake up every process in the queue.  The exception is
8    if one has <code class="constant">TASK_EXCLUSIVE</code> set, in which case
9    the remainder of the queue will not be woken.  There are other variants
10    of this basic function available in the same header.
11   </p></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="queue-waitqueue.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="queues.html">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="atomic-ops.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Queuing&#160;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">&#160;Chapter&#160;8.&#160;Atomic Operations</td></tr></table></div></body></html>
12