Sophie

Sophie

distrib > CentOS > 6 > i386 > by-pkgid > cf93d8a8acdcc6fe2225039da0502495 > files > 3496

kernel-doc-2.6.32-131.17.1.el6.centos.plus.noarch.rpm

<?xml version="1.0" encoding="ANSI_X3.4-1968" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968" /><title>ccw_device_start_key</title><meta name="generator" content="DocBook XSL Stylesheets V1.75.2" /><link rel="home" href="index.html" title="Writing s390 channel device drivers" /><link rel="up" href="ch02s02.html" title="ccw devices" /><link rel="prev" href="re25.html" title="ccw_device_clear" /><link rel="next" href="re27.html" title="ccw_device_start_timeout_key" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span>ccw_device_start_key</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="re25.html">Prev</a>&#160;</td><th width="60%" align="center">ccw devices</th><td width="20%" align="right">&#160;<a accesskey="n" href="re27.html">Next</a></td></tr></table><hr /></div><div class="refentry" title="ccw_device_start_key"><a id="API-ccw-device-start-key"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>ccw_device_start_key &#8212; 
     start a s390 channel program with key
 </p></div><div class="refsynopsisdiv" title="Synopsis"><h2>Synopsis</h2><div class="funcsynopsis"><table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0" class="funcprototype-table"><tr><td><code class="funcdef">int <b class="fsfunc">ccw_device_start_key </b>(</code></td><td>struct ccw_device * <var class="pdparam">cdev</var>, </td></tr><tr><td>&#160;</td><td>struct ccw1 * <var class="pdparam">cpa</var>, </td></tr><tr><td>&#160;</td><td>unsigned long <var class="pdparam">intparm</var>, </td></tr><tr><td>&#160;</td><td>__u8 <var class="pdparam">lpm</var>, </td></tr><tr><td>&#160;</td><td>__u8 <var class="pdparam">key</var>, </td></tr><tr><td>&#160;</td><td>unsigned long <var class="pdparam">flags</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer">&#160;</div></div></div><div class="refsect1" title="Arguments"><a id="id2576745"></a><h2>Arguments</h2><div class="variablelist"><dl><dt><span class="term"><em class="parameter"><code>cdev</code></em></span></dt><dd><p>
     target ccw device
    </p></dd><dt><span class="term"><em class="parameter"><code>cpa</code></em></span></dt><dd><p>
     logical start address of channel program
    </p></dd><dt><span class="term"><em class="parameter"><code>intparm</code></em></span></dt><dd><p>
     user specific interruption parameter; will be presented back to
     <em class="parameter"><code>cdev</code></em>'s interrupt handler. Allows a device driver to associate
     the interrupt with a particular I/O request.
    </p></dd><dt><span class="term"><em class="parameter"><code>lpm</code></em></span></dt><dd><p>
     defines the channel path to be used for a specific I/O request. A
     value of 0 will make cio use the opm.
    </p></dd><dt><span class="term"><em class="parameter"><code>key</code></em></span></dt><dd><p>
     storage key to be used for the I/O
    </p></dd><dt><span class="term"><em class="parameter"><code>flags</code></em></span></dt><dd><p>
     additional flags; defines the action to be performed for I/O
     processing.
    </p></dd></dl></div></div><div class="refsect1" title="Description"><a id="id2576865"></a><h2>Description</h2><p>
   Start a S/390 channel program. When the interrupt arrives, the
   IRQ handler is called, either immediately, delayed (dev-end missing,
   or sense required) or never (no IRQ handler registered).
</p></div><div class="refsect1" title="Returns"><a id="id2576878"></a><h2>Returns</h2><p>
   <code class="constant">0</code>, if the operation was successful;
   -<code class="constant">EBUSY</code>, if the device is busy, or status pending;
   -<code class="constant">EACCES</code>, if no path specified in <em class="parameter"><code>lpm</code></em> is operational;
   -<code class="constant">ENODEV</code>, if the device is not operational.
</p></div><div class="refsect1" title="Context"><a id="id2576908"></a><h2>Context</h2><p>
   Interrupts disabled, ccw device lock held
</p></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="re25.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="ch02s02.html">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="re27.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span>ccw_device_clear</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>ccw_device_start_timeout_key</span></td></tr></table></div></body></html>