'\" t .\" Title: devres_find .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: January 2017 .\" Manual: Driver Basics .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "DEVRES_FIND" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Driver Basics" .\" ----------------------------------------------------------------- .\" * 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" devres_find \- Find device resource .SH "SYNOPSIS" .HP \w'void\ *\ devres_find('u .BI "void * devres_find(struct\ device\ *\ " "dev" ", dr_release_t\ " "release" ", dr_match_t\ " "match" ", void\ *\ " "match_data" ");" .SH "ARGUMENTS" .PP \fIdev\fR .RS 4 Device to lookup resource from .RE .PP \fIrelease\fR .RS 4 Look for resources associated with this release function .RE .PP \fImatch\fR .RS 4 Match function (optional) .RE .PP \fImatch_data\fR .RS 4 Data for the match function .RE .SH "DESCRIPTION" .PP Find the latest devres of \fIdev\fR which is associated with \fIrelease\fR and for which \fImatch\fR returns 1\&. If \fImatch\fR is NULL, it\*(Aqs considered to match all\&. .SH "RETURN" .PP Pointer to found devres, NULL if not found\&. .SH "COPYRIGHT" .br