'\" t .\" Title: class_dev_iter_init .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: January 2017 .\" Manual: Device drivers infrastructure .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "CLASS_DEV_ITER_INIT" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "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" class_dev_iter_init \- initialize class device iterator .SH "SYNOPSIS" .HP \w'void\ class_dev_iter_init('u .BI "void class_dev_iter_init(struct\ class_dev_iter\ *\ " "iter" ", struct\ class\ *\ " "class" ", struct\ device\ *\ " "start" ", const\ struct\ device_type\ *\ " "type" ");" .SH "ARGUMENTS" .PP \fIiter\fR .RS 4 class iterator to initialize .RE .PP \fIclass\fR .RS 4 the class we wanna iterate over .RE .PP \fIstart\fR .RS 4 the device to start iterating from, if any .RE .PP \fItype\fR .RS 4 device_type of the devices to iterate over, NULL for all .RE .SH "DESCRIPTION" .PP Initialize class iterator \fIiter\fR such that it iterates over devices of \fIclass\fR\&. If \fIstart\fR is set, the list iteration will start there, otherwise if it is NULL, the iteration starts at the beginning of the list\&. .SH "COPYRIGHT" .br