'\" t .\" Title: bus_find_device_by_name .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Device drivers infrastructure .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "BUS_FIND_DEVICE_BY_N" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Device drivers infrastructure" .\" ----------------------------------------------------------------- .\" * 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" bus_find_device_by_name \- device iterator for locating a particular device of a specific name .SH "SYNOPSIS" .HP \w'struct\ device\ *\ bus_find_device_by_name('u .BI "struct device * bus_find_device_by_name(struct\ bus_type\ *\ " "bus" ", struct\ device\ *\ " "start" ", const\ char\ *\ " "name" ");" .SH "ARGUMENTS" .PP \fIbus\fR .RS 4 bus type .RE .PP \fIstart\fR .RS 4 Device to begin with .RE .PP \fIname\fR .RS 4 name of the device to match .RE .SH "DESCRIPTION" .PP This is similar to the \fBbus_find_device\fR function above, but it handles searching by a name automatically, no need to write another strcmp matching function\&. .SH "COPYRIGHT" .br