---
name: "get_ccwdev_by_busid"
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_busid"
---

# get\_ccwdev\_by\_busid(9)

obtain device from a bus id

## NAME

get\_ccwdev\_by\_busid - obtain device from a bus id

## SYNOPSIS

**struct ccw\_device \* get\_ccwdev\_by\_busid(struct ccw\_driver \*** *cdrv***, const char \*** *bus\_id***);**

## ARGUMENTS

*cdrv*

driver the device is owned by

*bus\_id*

bus id of the device to be searched

## DESCRIPTION

This function searches all devices owned by *cdrv* for a device with a bus id matching *bus\_id*.

## RETURN

If a match is found, its reference count of the found device is increased and it is returned; else **NULL** is returned.

## AUTHOR

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

Author.

## COPYRIGHT
