1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>scsi_ioctl</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_ioctl.c" title="drivers/scsi/scsi_ioctl.c"><link rel="prev" href="API-scsi-init-devinfo.html" title="scsi_init_devinfo"><link rel="next" href="API-scsi-execute.html" title="scsi_execute"></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_ioctl</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-scsi-init-devinfo.html">Prev</a>&#160;</td><th width="60%" align="center">drivers/scsi/scsi_ioctl.c</th><td width="20%" align="right">&#160;<a accesskey="n" href="API-scsi-execute.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-scsi-ioctl"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>scsi_ioctl &#8212; 
2  Dispatch ioctl to scsi device
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">int <b class="fsfunc">scsi_ioctl </b>(</code></td><td>struct scsi_device * <var class="pdparam">sdev</var>, </td></tr><tr><td>&#160;</td><td>int <var class="pdparam">cmd</var>, </td></tr><tr><td>&#160;</td><td>void __user * <var class="pdparam">arg</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer">&#160;</div></div></div><div class="refsect1"><a name="idp1123827932"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>sdev</code></em></span></dt><dd><p>
4     scsi device receiving ioctl
5    </p></dd><dt><span class="term"><em class="parameter"><code>cmd</code></em></span></dt><dd><p>
6     which ioctl is it
7    </p></dd><dt><span class="term"><em class="parameter"><code>arg</code></em></span></dt><dd><p>
8     data associated with ioctl
9    </p></dd></dl></div></div><div class="refsect1"><a name="idp1123831500"></a><h2>Description</h2><p>
10   The <code class="function">scsi_ioctl</code> function differs from most ioctls in that it
11   does not take a major/minor number as the dev field.  Rather, it takes
12   a pointer to a <span class="structname">struct scsi_device</span>.
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-init-devinfo.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="mid_layer.html#scsi_ioctl.c">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="API-scsi-execute.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">scsi_init_devinfo</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_execute</span></td></tr></table></div></body></html>
14