1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>scsi_prep_async_scan</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_scan.c" title="drivers/scsi/scsi_scan.c"><link rel="prev" href="API-scsi-report-lun-scan.html" title="scsi_report_lun_scan"><link rel="next" href="API-scsi-finish-async-scan.html" title="scsi_finish_async_scan"></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_prep_async_scan</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-scsi-report-lun-scan.html">Prev</a> </td><th width="60%" align="center">drivers/scsi/scsi_scan.c</th><td width="20%" align="right"> <a accesskey="n" href="API-scsi-finish-async-scan.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-scsi-prep-async-scan"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>scsi_prep_async_scan — 2 prepare for an async scan 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">struct async_scan_data * <b class="fsfunc">scsi_prep_async_scan </b>(</code></td><td>struct Scsi_Host * <var class="pdparam">shost</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idp1124245652"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>shost</code></em></span></dt><dd><p> 4 the host which will be scanned 5 </p></dd></dl></div></div><div class="refsect1"><a name="idp1124247228"></a><h2>Returns</h2><p> 6 a cookie to be passed to <code class="function">scsi_finish_async_scan</code> 7 </p><p> 8 9 Tells the midlayer this host is going to do an asynchronous scan. 10 It reserves the host's position in the scanning list and ensures 11 that other asynchronous scans started after this one won't affect the 12 ordering of the discovered devices. 13</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-report-lun-scan.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="mid_layer.html#scsi_scan.c">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-scsi-finish-async-scan.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">scsi_report_lun_scan</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_finish_async_scan</span></td></tr></table></div></body></html> 14