DEVICE_FOR_EACH_CHILD
Section: ()
Updated: 06 October 2005
Index
Return to Main Contents
NAME
device_for_each_child - device child iterator.
SYNOPSIS
"SYNOPSIS"
int device_for_each_child (struct device * dev, void * data, int (*fn)
struct device *, void *);
ARGUMENTS
- dev
-
parent struct device.
- data
-
data for the callback.
- fn
-
function to be called for each device.
DESCRIPTION
Iterate over dev's child devices, and call fn for each,
passing it data.
We check the return of fn each time. If it returns anything
other than 0, we break out and return that value.
Index
- NAME
-
- SYNOPSIS
-
- ARGUMENTS
-
- DESCRIPTION
-
This document was created by
man2html,
using the manual pages.
Time: 05:30:28 GMT, October 06, 2005