Query: bus_for_each_dev
OS: centos
Section: 9
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
BUS_FOR_EACH_DEV(9) Device drivers infrastructure BUS_FOR_EACH_DEV(9)NAMEbus_for_each_dev - device iterator.SYNOPSISint bus_for_each_dev(struct bus_type * bus, struct device * start, void * data, int (*fn) (struct device *, void *));ARGUMENTSbus bus type. start device to start iterating from. data data for the callback. fn function to be called for each device.DESCRIPTIONIterate over bus's list of devices, and call fn for each, passing it data. If start is not NULL, we use that device to begin iterating from. We check the return of fn each time. If it returns anything other than 0, we break out and return that value.NOTEThe device that returns a non-zero value is not retained in any way, nor is its refcount incremented. If the caller needs to retain this data, it should do so, and increment the reference count in the supplied callback.COPYRIGHTKernel Hackers Manual 3.10 June 2014 BUS_FOR_EACH_DEV(9)
Related Man Pages |
---|
device_create_vargs(9) - centos |
struct_bus_type(9) - centos |
devclass(9) - centos |
devclass(9) - minix |
devclass(9) - linux |
Similar Topics in the Unix Linux Community |
---|
Weird 'find' results |
Best performance UNIX just for HOST Virtualization? |
How to increment version inside a file? |
Docker learning Phase-I |
CentOS 6 ran out of space, need to reclaim it |