Functions | |
static __inline__ topo_obj_t | topo_get_next_obj_above_cpuset_by_depth (topo_topology_t topology, const topo_cpuset_t *set, unsigned depth, topo_obj_t prev) |
Iterate through same-depth objects covering at least CPU set set . | |
static __inline__ topo_obj_t | topo_get_next_obj_above_cpuset (topo_topology_t topology, const topo_cpuset_t *set, topo_obj_type_t type, topo_obj_t prev) |
Iterate through same-type objects covering at least CPU set set . |
static __inline__ topo_obj_t topo_get_next_obj_above_cpuset | ( | topo_topology_t | topology, | |
const topo_cpuset_t * | set, | |||
topo_obj_type_t | type, | |||
topo_obj_t | prev | |||
) | [static] |
Iterate through same-type objects covering at least CPU set set
.
If object prev
is NULL
, return the first object of type type
covering at least part of CPU set set
. The next invokation should pass the previous return value in prev
so as to obtain the next object of type type
covering at least another part of set
.
If there are no or multiple depths for type type
, NULL
is returned. The caller may fallback to topo_get_next_obj_above_cpuset_by_depth() for each depth.
static __inline__ topo_obj_t topo_get_next_obj_above_cpuset_by_depth | ( | topo_topology_t | topology, | |
const topo_cpuset_t * | set, | |||
unsigned | depth, | |||
topo_obj_t | prev | |||
) | [static] |
Iterate through same-depth objects covering at least CPU set set
.
If object prev
is NULL
, return the first object at depth depth
covering at least part of CPU set set
. The next invokation should pass the previous return value in prev
so as to obtain the next object covering at least another part of set
.