1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>trace_block_sleeprq</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="The Linux Kernel Tracepoint API"><link rel="up" href="block.html" title="Chapter&#160;4.&#160;Block IO"><link rel="prev" href="API-trace-block-getrq.html" title="trace_block_getrq"><link rel="next" href="API-trace-block-plug.html" title="trace_block_plug"></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"><span class="phrase">trace_block_sleeprq</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-trace-block-getrq.html">Prev</a>&#160;</td><th width="60%" align="center">Chapter&#160;4.&#160;Block IO</th><td width="20%" align="right">&#160;<a accesskey="n" href="API-trace-block-plug.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-trace-block-sleeprq"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>trace_block_sleeprq &#8212; 
2     waiting to get a free request entry in queue for block IO operation
3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">void <b class="fsfunc">trace_block_sleeprq </b>(</code></td><td>struct request_queue * <var class="pdparam">q</var>, </td></tr><tr><td>&#160;</td><td>struct bio * <var class="pdparam">bio</var>, </td></tr><tr><td>&#160;</td><td>int <var class="pdparam">rw</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer">&#160;</div></div></div><div class="refsect1"><a name="idp1120465060"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>q</code></em></span></dt><dd><p>
4     queue for operation
5    </p></dd><dt><span class="term"><em class="parameter"><code>bio</code></em></span></dt><dd><p>
6     pending block IO operation
7    </p></dd><dt><span class="term"><em class="parameter"><code>rw</code></em></span></dt><dd><p>
8     low bit indicates a read (<code class="constant">0</code>) or a write (<code class="constant">1</code>)
9    </p></dd></dl></div></div><div class="refsect1"><a name="idp1120469004"></a><h2>Description</h2><p>
10   In the case where a request struct cannot be provided for queue <em class="parameter"><code>q</code></em>
11   the process needs to wait for an request struct to become
12   available.  This tracepoint event is generated each time the
13   process goes to sleep waiting for request struct become available.
14</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-trace-block-getrq.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="block.html">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="API-trace-block-plug.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">trace_block_getrq</span>&#160;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">&#160;<span class="phrase">trace_block_plug</span></td></tr></table></div></body></html>
15