'\" t .\" Title: driver_for_each_device .\" 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_FOR_EACH_DEVI" "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_for_each_device \- Iterator for devices bound to a driver\&. .SH "SYNOPSIS" .HP \w'int\ driver_for_each_device('u .BI "int driver_for_each_device(struct\ device_driver\ *\ " "drv" ", struct\ device\ *\ " "start" ", void\ *\ " "data" ", int\ (*" "fn" ")\ (struct\ device\ *,\ void\ *));" .SH "ARGUMENTS" .PP \fIdrv\fR .RS 4 Driver we\*(Aqre iterating\&. .RE .PP \fIstart\fR .RS 4 Device to begin with .RE .PP \fIdata\fR .RS 4 Data to pass to the callback\&. .RE .PP \fIfn\fR .RS 4 Function to call for each device\&. .RE .SH "DESCRIPTION" .PP Iterate over the \fIdrv\fR\*(Aqs list of devices calling \fIfn\fR for each one\&. .SH "COPYRIGHT" .br