1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>trace_block_rq_complete</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-rq-requeue.html" title="trace_block_rq_requeue"><link rel="next" href="API-trace-block-rq-insert.html" title="trace_block_rq_insert"></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_rq_complete</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-trace-block-rq-requeue.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-rq-insert.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-trace-block-rq-complete"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>trace_block_rq_complete &#8212; 
2     block IO operation completed by device driver
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_rq_complete </b>(</code></td><td>struct request_queue * <var class="pdparam">q</var>, </td></tr><tr><td>&#160;</td><td>struct request * <var class="pdparam">rq</var>, </td></tr><tr><td>&#160;</td><td>unsigned int <var class="pdparam">nr_bytes</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer">&#160;</div></div></div><div class="refsect1"><a name="idp1120378764"></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 containing the block operation request
5    </p></dd><dt><span class="term"><em class="parameter"><code>rq</code></em></span></dt><dd><p>
6     block operations request
7    </p></dd><dt><span class="term"><em class="parameter"><code>nr_bytes</code></em></span></dt><dd><p>
8     number of completed bytes
9    </p></dd></dl></div></div><div class="refsect1"><a name="idp1120382308"></a><h2>Description</h2><p>
10   The block_rq_complete tracepoint event indicates that some portion
11   of operation request has been completed by the device driver.  If
12   the <em class="parameter"><code>rq</code></em>-&gt;bio is <code class="constant">NULL</code>, then there is absolutely no additional work to
13   do for the request. If <em class="parameter"><code>rq</code></em>-&gt;bio is non-NULL then there is
14   additional work required to complete the request.
15</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-rq-requeue.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-rq-insert.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">trace_block_rq_requeue</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_rq_insert</span></td></tr></table></div></body></html>
16