'\" t .\" Title: get_ccwdev_by_busid .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: The ccw bus .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "GET_CCWDEV_BY_BUSID" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "The ccw bus" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" get_ccwdev_by_busid \- obtain device from a bus id .SH "SYNOPSIS" .HP \w'struct\ ccw_device\ *\ get_ccwdev_by_busid('u .BI "struct ccw_device * get_ccwdev_by_busid(struct\ ccw_driver\ *\ " "cdrv" ", const\ char\ *\ " "bus_id" ");" .SH "ARGUMENTS" .PP \fIcdrv\fR .RS 4 driver the device is owned by .RE .PP \fIbus_id\fR .RS 4 bus id of the device to be searched .RE .SH "DESCRIPTION" .PP This function searches all devices owned by \fIcdrv\fR for a device with a bus id matching \fIbus_id\fR\&. .SH "RETURN" .PP If a match is found, its reference count of the found device is increased and it is returned; else \fBNULL\fR is returned\&. .SH "AUTHOR" .PP \fBCornelia Huck\fR <\&cornelia.huck@de.ibm.com\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br