'\" t .\" Title: subsys_find_device_by_id .\" 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 "SUBSYS_FIND_DEVICE_B" "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" subsys_find_device_by_id \- find a device with a specific enumeration number .SH "SYNOPSIS" .HP \w'struct\ device\ *\ subsys_find_device_by_id('u .BI "struct device * subsys_find_device_by_id(struct\ bus_type\ *\ " "subsys" ", unsigned\ int\ " "id" ", struct\ device\ *\ " "hint" ");" .SH "ARGUMENTS" .PP \fIsubsys\fR .RS 4 subsystem .RE .PP \fIid\fR .RS 4 index \*(Aqid\*(Aq in struct device .RE .PP \fIhint\fR .RS 4 device to check first .RE .SH "DESCRIPTION" .PP Check the hint\*(Aqs next object and if it is a match return it directly, otherwise, fall back to a full list search\&. Either way a reference for the returned object is taken\&. .SH "COPYRIGHT" .br