'\" t .\" Title: ccw_device_set_online .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: July 2017 .\" Manual: The ccw bus .\" Source: Kernel Hackers Manual 4.12.2 .\" Language: English .\" .TH "CCW_DEVICE_SET_ONLIN" "9" "July 2017" "Kernel Hackers Manual 4\&.12\&" "The ccw 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" ccw_device_set_online \- enable a ccw device for I/O .SH "SYNOPSIS" .HP \w'int\ ccw_device_set_online('u .BI "int ccw_device_set_online(struct\ ccw_device\ *\ " "cdev" ");" .SH "ARGUMENTS" .PP \fIstruct ccw_device * cdev\fR .RS 4 target ccw device .RE .SH "DESCRIPTION" .PP This function first enables \fIcdev\fR and then calls the driver\*(Aqs \fBset_online\fR function for \fIcdev\fR, if given\&. If \fBset_online\fR returns an error, \fIcdev\fR is disabled again\&. .SH "RETURN" .PP \fB0\fR on success and a negative error value on failure\&. .SH "CONTEXT" .PP enabled, ccw device lock not held .SH "AUTHOR" .PP \fBCornelia Huck\fR <\&cornelia.huck@de.ibm.com\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br