.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "DEVICE_FOR_EACH_CHILD" "" "06 October 2005" "" ""
.SH NAME
device_for_each_child \- device child iterator.
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int device_for_each_child (struct device * \fIdev\fB, void * \fIdata\fB, int (*\fIfn\fB)
struct device *, void *);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIdev\fB\fR
parent struct device.
.TP
\fB\fIdata\fB\fR
data for the callback.
.TP
\fB\fIfn\fB\fR
function to be called for each device.
.SH "DESCRIPTION"
.PP
Iterate over \fIdev\fR\&'s child devices, and call \fIfn\fR for each,
passing it \fIdata\fR\&.
.PP
We check the return of \fIfn\fR each time. If it returns anything
other than 0, we break out and return that value.