'\" t .\" Title: dpm_for_each_dev .\" 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 "DPM_FOR_EACH_DEV" "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" dpm_for_each_dev \- device iterator\&. .SH "SYNOPSIS" .HP \w'void\ dpm_for_each_dev('u .BI "void dpm_for_each_dev(void\ *\ " "data" ", void\ (*" "fn" ")\ (struct\ device\ *,\ void\ *));" .SH "ARGUMENTS" .PP \fIdata\fR .RS 4 data for the callback\&. .RE .PP \fIfn\fR .RS 4 function to be called for each device\&. .RE .SH "DESCRIPTION" .PP Iterate over devices in dpm_list, and call \fIfn\fR for each device, passing it \fIdata\fR\&. .SH "COPYRIGHT" .br