---
name: "ccw_device_set_options_mask"
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_options_mask"
---

# ccw\_device\_set\_options\_mask(9)

set some options and unset the rest

## NAME

ccw\_device\_set\_options\_mask - set some options and unset the rest

## SYNOPSIS

**int ccw\_device\_set\_options\_mask(struct ccw\_device \*** *cdev***, unsigned long** *flags***);**

## ARGUMENTS

*cdev*

device for which the options are to be set

*flags*

options to be set

## DESCRIPTION

All flags specified in *flags* are set, all flags not specified in *flags* are cleared.

## RETURN

**0** on success, -**EINVAL** on an invalid flag combination.

## AUTHOR

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

Author.

## COPYRIGHT
