1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>scsi_sense_desc_find</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="SCSI Interfaces Guide"><link rel="up" href="mid_layer.html#scsi_error.c" title="drivers/scsi/scsi_error.c"><link rel="prev" href="API-scsi-normalize-sense.html" title="scsi_normalize_sense"><link rel="next" href="API-scsi-get-sense-info-fld.html" title="scsi_get_sense_info_fld"></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">scsi_sense_desc_find</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-scsi-normalize-sense.html">Prev</a>&#160;</td><th width="60%" align="center">drivers/scsi/scsi_error.c</th><td width="20%" align="right">&#160;<a accesskey="n" href="API-scsi-get-sense-info-fld.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-scsi-sense-desc-find"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>scsi_sense_desc_find &#8212; 
2     search for a given descriptor type in descriptor sense data format.
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">const u8 * <b class="fsfunc">scsi_sense_desc_find </b>(</code></td><td>const u8 * <var class="pdparam">sense_buffer</var>, </td></tr><tr><td>&#160;</td><td>int <var class="pdparam">sb_len</var>, </td></tr><tr><td>&#160;</td><td>int <var class="pdparam">desc_type</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer">&#160;</div></div></div><div class="refsect1"><a name="idp1123749444"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>sense_buffer</code></em></span></dt><dd><p>
4     byte array of descriptor format sense data
5    </p></dd><dt><span class="term"><em class="parameter"><code>sb_len</code></em></span></dt><dd><p>
6     number of valid bytes in sense_buffer
7    </p></dd><dt><span class="term"><em class="parameter"><code>desc_type</code></em></span></dt><dd><p>
8     value of descriptor type to find
9     (e.g. 0 -&gt; information)
10    </p></dd></dl></div></div><div class="refsect1"><a name="idp1123753116"></a><h2>Notes</h2><p>
11   only valid when sense data is in descriptor format
12</p></div><div class="refsect1"><a name="idp1123753756"></a><h2>Return value</h2><p>
13   pointer to start of (first) descriptor if found else NULL
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-scsi-normalize-sense.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="mid_layer.html#scsi_error.c">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="API-scsi-get-sense-info-fld.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">scsi_normalize_sense</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">scsi_get_sense_info_fld</span></td></tr></table></div></body></html>
15