'\" t .\" Title: ccwgroup_create_dev .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: July 2017 .\" Manual: The ccwgroup bus .\" Source: Kernel Hackers Manual 4.12.2 .\" Language: English .\" .TH "CCWGROUP_CREATE_DEV" "9" "July 2017" "Kernel Hackers Manual 4\&.12\&" "The ccwgroup bus" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" ccwgroup_create_dev \- create and register a ccw group device .SH "SYNOPSIS" .HP \w'int\ ccwgroup_create_dev('u .BI "int ccwgroup_create_dev(struct\ device\ *\ " "parent" ", struct\ ccwgroup_driver\ *\ " "gdrv" ", int\ " "num_devices" ", const\ char\ *\ " "buf" ");" .SH "ARGUMENTS" .PP \fIstruct device * parent\fR .RS 4 parent device for the new device .RE .PP \fIstruct ccwgroup_driver * gdrv\fR .RS 4 driver for the new group device .RE .PP \fIint num_devices\fR .RS 4 number of slave devices .RE .PP \fIconst char * buf\fR .RS 4 buffer containing comma separated bus ids of slave devices .RE .SH "DESCRIPTION" .PP Create and register a new ccw group device as a child of \fIparent\fR\&. Slave devices are obtained from the list of bus ids given in \fIbuf\fR\&. .SH "RETURN" .PP \fB0\fR on success and an error code on failure\&. .SH "CONTEXT" .PP non\-atomic .SH "AUTHOR" .PP \fBCornelia Huck\fR <\&cornelia.huck@de.ibm.com\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br