1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>ccwgroup_create_dev</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-ccwgroup-set-offline.html" title="ccwgroup_set_offline"><link rel="next" href="API-ccwgroup-driver-register.html" title="ccwgroup_driver_register"></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">ccwgroup_create_dev</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-ccwgroup-set-offline.html">Prev</a> </td><th width="60%" align="center">ccw group devices</th><td width="20%" align="right"> <a accesskey="n" href="API-ccwgroup-driver-register.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-ccwgroup-create-dev"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>ccwgroup_create_dev — 2 create and register a ccw group 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">ccwgroup_create_dev </b>(</code></td><td>struct device * <var class="pdparam">parent</var>, </td></tr><tr><td> </td><td>struct ccwgroup_driver * <var class="pdparam">gdrv</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">num_devices</var>, </td></tr><tr><td> </td><td>const char * <var class="pdparam">buf</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idp1124552140"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>parent</code></em></span></dt><dd><p> 4 parent device for the new device 5 </p></dd><dt><span class="term"><em class="parameter"><code>gdrv</code></em></span></dt><dd><p> 6 driver for the new group device 7 </p></dd><dt><span class="term"><em class="parameter"><code>num_devices</code></em></span></dt><dd><p> 8 number of slave devices 9 </p></dd><dt><span class="term"><em class="parameter"><code>buf</code></em></span></dt><dd><p> 10 buffer containing comma separated bus ids of slave devices 11 </p></dd></dl></div></div><div class="refsect1"><a name="idp1124556740"></a><h2>Description</h2><p> 12 Create and register a new ccw group device as a child of <em class="parameter"><code>parent</code></em>. Slave 13 devices are obtained from the list of bus ids given in <em class="parameter"><code>buf</code></em>. 14</p></div><div class="refsect1"><a name="idp1124558084"></a><h2>Returns</h2><p> 15 <code class="constant">0</code> on success and an error code on failure. 16</p></div><div class="refsect1"><a name="idp1124558900"></a><h2>Context</h2><p> 17 non-atomic 18</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-ccwgroup-set-offline.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ccwgroup.html#ccwgroupdevices">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-ccwgroup-driver-register.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">ccwgroup_set_offline</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span class="phrase">ccwgroup_driver_register</span></td></tr></table></div></body></html> 19