'\" t .\" Title: driver_find .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: Device drivers infrastructure .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "DRIVER_FIND" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "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" driver_find \- locate driver on a bus by its name\&. .SH "SYNOPSIS" .HP \w'struct\ device_driver\ *\ driver_find('u .BI "struct device_driver * driver_find(const\ char\ *\ " "name" ", struct\ bus_type\ *\ " "bus" ");" .SH "ARGUMENTS" .PP \fIname\fR .RS 4 name of the driver\&. .RE .PP \fIbus\fR .RS 4 bus to scan for the driver\&. .RE .SH "DESCRIPTION" .PP Call \fBkset_find_obj\fR to iterate over list of drivers on a bus to find driver by name\&. Return driver if found\&. .PP This routine provides no locking to prevent the driver it returns from being unregistered or unloaded while the caller is using it\&. The caller is responsible for preventing this\&. .SH "COPYRIGHT" .br