---
name: "get_ccwdev_by_dev_id"
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/get_ccwdev_by_dev_id"
---

# get\_ccwdev\_by\_dev\_id(9)

obtain device from a ccw device id

## NAME

get\_ccwdev\_by\_dev\_id - obtain device from a ccw device id

## SYNOPSIS

**struct ccw\_device \* get\_ccwdev\_by\_dev\_id(struct ccw\_dev\_id \*** *dev\_id***);**

## ARGUMENTS

*dev\_id*

id of the device to be searched

## DESCRIPTION

This function searches all devices attached to the ccw bus for a device matching *dev\_id*.

## RETURN

If a device is found its reference count is increased and returned; else **NULL** is returned.

## AUTHOR

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

Author.

## COPYRIGHT
