---
name: "ccw_device_set_offline"
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_offline"
---

# ccw\_device\_set\_offline(9)

disable a ccw device for I/O

## NAME

ccw\_device\_set\_offline - disable a ccw device for I/O

## SYNOPSIS

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

## ARGUMENTS

*cdev*

target ccw device

## DESCRIPTION

This function calls the driver's **set\_offline** function for *cdev*, if given, and then disables *cdev*.

## 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
