RTEMS 6.1-rc2
|
RTEMS Run-Time Linker Chain Iterator. More...
#include <rtems/chain.h>
Go to the source code of this file.
Typedefs | |
typedef bool(* | rtems_chain_iterator) (rtems_chain_node *node, void *data) |
Functions | |
bool | rtems_rtl_chain_iterate (rtems_chain_control *chain, rtems_chain_iterator iterator, void *data) |
int | rtems_rtl_chain_count (rtems_chain_control *chain) |
RTEMS Run-Time Linker Chain Iterator.
typedef bool(* rtems_chain_iterator) (rtems_chain_node *node, void *data) |
Chain iterator handler.
int rtems_rtl_chain_count | ( | rtems_chain_control * | chain | ) |
Count the number of nodes on the chain.
chain | The chain to count the nodes of. |
bool rtems_rtl_chain_iterate | ( | rtems_chain_control * | chain, |
rtems_chain_iterator | iterator, | ||
void * | data | ||
) |
Iterate a chain of nodes invoking the iterator handler. Supply a data pointer the iterator moves data between the invoker and the iterator.
The iterator allows removal of the node from the chain.
chain | The chain of nodes to iterator over. |
iterator | The iterator handler called once for each node. |
data | Pointer to the data used by the iterator. |
true | The whole chain was iterated over. |
false | The iterator returned false. |