---
name: "ccw_device_set_online"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/ccw_device_set_online"
---

# ccw\_device\_set\_online(9)

enable a ccw device for I/O

## NAME

ccw\_device\_set\_online - enable a ccw device for I/O

## SYNOPSIS

**int ccw\_device\_set\_online(struct ccw\_device \*** *cdev***);**

## ARGUMENTS

*cdev*

target ccw device

## DESCRIPTION

This function first enables *cdev* and then calls the driver's **set\_online** function for *cdev*, if given. If **set\_online** returns an error, *cdev* is disabled again.

## RETURN

**0** on success and a negative error value on failure.

## CONTEXT

enabled, ccw device lock not held

## AUTHOR

**Cornelia Huck** \<cornelia.huck@de.ibm.com\>

Author.

## COPYRIGHT
