<?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_driver</title><meta name="generator" content="DocBook XSL Stylesheets V1.76.1" /><link rel="home" href="index.html" title="Writing s390 channel device drivers" /><link rel="up" href="ccwdev.html" title="ccw devices" /><link rel="prev" href="API-struct-ccw-device.html" title="struct ccw_device" /><link rel="next" href="API-ccw-device-set-offline.html" title="ccw_device_set_offline" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span>struct ccw_driver</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-struct-ccw-device.html">Prev</a> </td><th width="60%" align="center">ccw devices</th><td width="20%" align="right"> <a accesskey="n" href="API-ccw-device-set-offline.html">Next</a></td></tr></table><hr /></div><div class="refentry" title="struct ccw_driver"><a id="API-struct-ccw-driver"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct ccw_driver — device driver for channel attached devices </p></div><div class="refsynopsisdiv" title="Synopsis"><h2>Synopsis</h2><pre class="programlisting"> struct ccw_driver { struct module * owner; struct ccw_device_id * ids; int (* probe) (struct ccw_device *); void (* remove) (struct ccw_device *); int (* set_online) (struct ccw_device *); int (* set_offline) (struct ccw_device *); int (* notify) (struct ccw_device *, int); void (* path_event) (struct ccw_device *, int *); void (* shutdown) (struct ccw_device *); int (* prepare) (struct ccw_device *); void (* complete) (struct ccw_device *); int (* freeze) (struct ccw_device *); int (* thaw) (struct ccw_device *); int (* restore) (struct ccw_device *); enum uc_todo (* uc_handler) (struct ccw_device *, struct irb *); struct device_driver driver; char * name; }; </pre></div><div class="refsect1" title="Members"><a id="id2714381"></a><h2>Members</h2><div class="variablelist"><dl><dt><span class="term">owner</span></dt><dd><p> owning module </p></dd><dt><span class="term">ids</span></dt><dd><p> ids supported by this driver </p></dd><dt><span class="term">probe</span></dt><dd><p> function called on probe </p></dd><dt><span class="term">remove</span></dt><dd><p> function called on remove </p></dd><dt><span class="term">set_online</span></dt><dd><p> called when setting device online </p></dd><dt><span class="term">set_offline</span></dt><dd><p> called when setting device offline </p></dd><dt><span class="term">notify</span></dt><dd><p> notify driver of device state changes </p></dd><dt><span class="term">path_event</span></dt><dd><p> notify driver of channel path events </p></dd><dt><span class="term">shutdown</span></dt><dd><p> called at device shutdown </p></dd><dt><span class="term">prepare</span></dt><dd><p> prepare for pm state transition </p></dd><dt><span class="term">complete</span></dt><dd><p> undo work done in <em class="parameter"><code>prepare</code></em> </p></dd><dt><span class="term">freeze</span></dt><dd><p> callback for freezing during hibernation snapshotting </p></dd><dt><span class="term">thaw</span></dt><dd><p> undo work done in <em class="parameter"><code>freeze</code></em> </p></dd><dt><span class="term">restore</span></dt><dd><p> callback for restoring after hibernation </p></dd><dt><span class="term">uc_handler</span></dt><dd><p> callback for unit check handler </p></dd><dt><span class="term">driver</span></dt><dd><p> embedded device driver structure </p></dd><dt><span class="term">name</span></dt><dd><p> device driver name </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-struct-ccw-device.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ccwdev.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-ccw-device-set-offline.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span>struct ccw_device</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span>ccw_device_set_offline</span></td></tr></table></div></body></html>