MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / rt_ofw_get_next_available_child

Function rt_ofw_get_next_available_child

components/drivers/ofw/base.c:819–834  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

817}
818
819struct rt_ofw_node *rt_ofw_get_next_available_child(const struct rt_ofw_node *parent, struct rt_ofw_node *prev)
820{
821 struct rt_ofw_node *next = RT_NULL;
822
823 if (parent)
824 {
825 next = prev;
826
827 do {
828 next = rt_ofw_get_next_child(parent, next);
829
830 } while (next && !ofw_node_is_available(next));
831 }
832
833 return next;
834}
835
836struct rt_ofw_node *rt_ofw_get_cpu_node(int cpu, int *thread, rt_bool_t (*match_cpu_hwid)(int cpu, rt_uint64_t hwid))
837{

Callers

nothing calls this directly

Calls 2

rt_ofw_get_next_childFunction · 0.85
ofw_node_is_availableFunction · 0.85

Tested by

no test coverage detected