1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>struct ccwgroup_driver</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Writing s390 channel device drivers"><link rel="up" href="ccwgroup.html#ccwgroupdevices" title="ccw group devices"><link rel="prev" href="API-struct-ccwgroup-device.html" title="struct ccwgroup_device"><link rel="next" href="API-ccwgroup-set-online.html" title="ccwgroup_set_online"></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">struct ccwgroup_driver</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-struct-ccwgroup-device.html">Prev</a>&#160;</td><th width="60%" align="center">ccw group devices</th><td width="20%" align="right">&#160;<a accesskey="n" href="API-ccwgroup-set-online.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-struct-ccwgroup-driver"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct ccwgroup_driver &#8212; 
2     driver for ccw group devices
3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting">
4struct ccwgroup_driver {
5  int (* setup) (struct ccwgroup_device *);
6  void (* remove) (struct ccwgroup_device *);
7  int (* set_online) (struct ccwgroup_device *);
8  int (* set_offline) (struct ccwgroup_device *);
9  void (* shutdown) (struct ccwgroup_device *);
10  int (* prepare) (struct ccwgroup_device *);
11  void (* complete) (struct ccwgroup_device *);
12  int (* freeze) (struct ccwgroup_device *);
13  int (* thaw) (struct ccwgroup_device *);
14  int (* restore) (struct ccwgroup_device *);
15  struct device_driver driver;
16};  </pre></div><div class="refsect1"><a name="idp1121102284"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">setup</span></dt><dd><p>
17   function called during device creation to setup the device
18      </p></dd><dt><span class="term">remove</span></dt><dd><p>
19   function called on remove
20      </p></dd><dt><span class="term">set_online</span></dt><dd><p>
21   function called when device is set online
22      </p></dd><dt><span class="term">set_offline</span></dt><dd><p>
23   function called when device is set offline
24      </p></dd><dt><span class="term">shutdown</span></dt><dd><p>
25   function called when device is shut down
26      </p></dd><dt><span class="term">prepare</span></dt><dd><p>
27   prepare for pm state transition
28      </p></dd><dt><span class="term">complete</span></dt><dd><p>
29   undo work done in <em class="parameter"><code>prepare</code></em>
30      </p></dd><dt><span class="term">freeze</span></dt><dd><p>
31   callback for freezing during hibernation snapshotting
32      </p></dd><dt><span class="term">thaw</span></dt><dd><p>
33   undo work done in <em class="parameter"><code>freeze</code></em>
34      </p></dd><dt><span class="term">restore</span></dt><dd><p>
35   callback for restoring after hibernation
36      </p></dd><dt><span class="term">driver</span></dt><dd><p>
37   embedded driver structure
38      </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-ccwgroup-device.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="ccwgroup.html#ccwgroupdevices">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="API-ccwgroup-set-online.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">struct ccwgroup_device</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">ccwgroup_set_online</span></td></tr></table></div></body></html>
39