'\" t .\" Title: devres_for_each_res .\" 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_FOR_EACH_RES" "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_for_each_res \- Resource iterator .SH "SYNOPSIS" .HP \w'void\ devres_for_each_res('u .BI "void devres_for_each_res(struct\ device\ *\ " "dev" ", dr_release_t\ " "release" ", dr_match_t\ " "match" ", void\ *\ " "match_data" ", void\ (*" "fn" ")\ (struct\ device\ *,\ void\ *,\ void\ *), void\ *\ " "data" ");" .SH "ARGUMENTS" .PP \fIdev\fR .RS 4 Device to iterate 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 .PP \fIfn\fR .RS 4 Function to be called for each matched resource\&. .RE .PP \fIdata\fR .RS 4 Data for \fIfn\fR, the 3rd parameter of \fIfn\fR .RE .SH "DESCRIPTION" .PP Call \fIfn\fR for each devres of \fIdev\fR which is associated with \fIrelease\fR and for which \fImatch\fR returns 1\&. .SH "RETURN" .PP void .SH "COPYRIGHT" .br