Query: class_for_each_device
OS: centos
Section: 9
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
CLASS_FOR_EACH_DEVIC(9) Device drivers infrastructure CLASS_FOR_EACH_DEVIC(9)NAMEclass_for_each_device - device iteratorSYNOPSISint class_for_each_device(struct class * class, struct device * start, void * data, int (*fn) (struct device *, void *));ARGUMENTSclass the class we're iterating start the device to start with in the list, if any. data data for the callback fn function to be called for each deviceDESCRIPTIONIterate over class's list of devices, and call fn for each, passing it data. If start is set, the list iteration will start there, otherwise if it is NULL, the iteration starts at the beginning of the list. We check the return of fn each time. If it returns anything other than 0, we break out and return that value. fn is allowed to do anything including calling back into class code. There's no locking restriction.COPYRIGHTKernel Hackers Manual 3.10 June 2014 CLASS_FOR_EACH_DEVIC(9)
Related Man Pages |
---|
device_create(9) - centos |
device_schedule_callback_owner(9) - centos |
struct_ccw_driver(9) - centos |
device_create(9) - suse |
struct_i2c_driver(9) - suse |
Similar Topics in the Unix Linux Community |
---|
Weird 'find' results |
How to increment version inside a file? |
CentOS7 restoring file capabilities |
CentOS 6 ran out of space, need to reclaim it |
Controlling user input |