Be sure to see the figure in Terms and Definitions that shows a complete topology tree, including depths, child/sibling/cousin relationships, and an example of an asymmetric topology where one socket has fewer caches than its peers.
Returns the topology object at logical index idx
from depth depth
.
Returns the topology object at logical index idx
with type type
.
If no object for that type exists, NULL
is returned. If there are several levels with objects of that type, NULL
is returned and ther caller may fallback to hwloc_get_obj_by_depth().