1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>scsi_build_sense_buffer</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-get-sense-info-fld.html" title="scsi_get_sense_info_fld"><link rel="next" href="API-scsi-dev-info-list-add.html" title="scsi_dev_info_list_add"></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_build_sense_buffer</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-scsi-get-sense-info-fld.html">Prev</a> </td><th width="60%" align="center">drivers/scsi/scsi_error.c</th><td width="20%" align="right"> <a accesskey="n" href="API-scsi-dev-info-list-add.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-scsi-build-sense-buffer"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>scsi_build_sense_buffer — 2 build sense data in a buffer 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">scsi_build_sense_buffer </b>(</code></td><td>int <var class="pdparam">desc</var>, </td></tr><tr><td> </td><td>u8 * <var class="pdparam">buf</var>, </td></tr><tr><td> </td><td>u8 <var class="pdparam">key</var>, </td></tr><tr><td> </td><td>u8 <var class="pdparam">asc</var>, </td></tr><tr><td> </td><td>u8 <var class="pdparam">ascq</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idp1123769940"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>desc</code></em></span></dt><dd><p> 4 Sense format (non zero == descriptor format, 5 0 == fixed format) 6 </p></dd><dt><span class="term"><em class="parameter"><code>buf</code></em></span></dt><dd><p> 7 Where to build sense data 8 </p></dd><dt><span class="term"><em class="parameter"><code>key</code></em></span></dt><dd><p> 9 Sense key 10 </p></dd><dt><span class="term"><em class="parameter"><code>asc</code></em></span></dt><dd><p> 11 Additional sense code 12 </p></dd><dt><span class="term"><em class="parameter"><code>ascq</code></em></span></dt><dd><p> 13 Additional sense code qualifier 14 </p></dd></dl></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-scsi-get-sense-info-fld.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="mid_layer.html#scsi_error.c">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-scsi-dev-info-list-add.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">scsi_get_sense_info_fld</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span class="phrase">scsi_dev_info_list_add</span></td></tr></table></div></body></html> 15