RTEMS CPU Kit with SuperCore
4.11.2
|
Functions | |
int | drvmgr_for_each_listdev (struct drvmgr_list *devlist, unsigned int state_set_mask, unsigned int state_clr_mask, int(*func)(struct drvmgr_dev *dev, void *arg), void *arg) |
Calls func() for every device found matching the search requirements of set_mask and clr_mask. More... | |
int drvmgr_for_each_listdev | ( | struct drvmgr_list * | devlist, |
unsigned int | state_set_mask, | ||
unsigned int | state_clr_mask, | ||
int(*)(struct drvmgr_dev *dev, void *arg) | func, | ||
void * | arg | ||
) |
Calls func() for every device found matching the search requirements of set_mask and clr_mask.
Each bit set in set_mask must be set in the device state bit mask (dev->state), and Each bit in the clr_mask must be cleared in the device state bit mask (dev->state). There are three special cases:
If the function func() returns a non-zero value then for_each_dev will return imediatly with the same return value as func() returned.
devlist | The list to iterate though searching for devices. |
state_set_mask | Defines the bits that must be set in dev->state |
state_clr_mask | Defines the bits that must be cleared in dev->state |
func | Function called on each |