<?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>struct ccw_device</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="ch02s02.html" title="ccw devices" /><link rel="next" href="re13.html" title="struct ccw_driver" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span>struct ccw_device</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch02s02.html">Prev</a> </td><th width="60%" align="center">ccw devices</th><td width="20%" align="right"> <a accesskey="n" href="re13.html">Next</a></td></tr></table><hr /></div><div class="refentry" title="struct ccw_device"><a id="API-struct-ccw-device"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct ccw_device — channel attached device </p></div><div class="refsynopsisdiv" title="Synopsis"><h2>Synopsis</h2><pre class="programlisting"> struct ccw_device { spinlock_t * ccwlock; struct ccw_device_id id; struct ccw_driver * drv; struct device dev; int online; void (* handler) (struct ccw_device *, unsigned long, struct irb *); }; </pre></div><div class="refsect1" title="Members"><a id="id3090092"></a><h2>Members</h2><div class="variablelist"><dl><dt><span class="term">ccwlock</span></dt><dd><p> pointer to device lock </p></dd><dt><span class="term">id</span></dt><dd><p> id of this device </p></dd><dt><span class="term">drv</span></dt><dd><p> ccw driver for this device </p></dd><dt><span class="term">dev</span></dt><dd><p> embedded device structure </p></dd><dt><span class="term">online</span></dt><dd><p> online status of device </p></dd><dt><span class="term">handler</span></dt><dd><p> interrupt handler </p></dd></dl></div></div><div class="refsect1" title="Description"><a id="id3090168"></a><h2>Description</h2><p> <em class="parameter"><code>handler</code></em> is a member of the device rather than the driver since a driver can have different interrupt handlers for different ccw devices (multi-subchannel drivers). </p></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch02s02.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch02s02.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="re13.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">ccw devices </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span>struct ccw_driver</span></td></tr></table></div></body></html>