Functions | |
static __inline__ unsigned | topo_get_type_or_below_depth (topo_topology_t topology, topo_obj_type_t type) |
Returns the depth of objects of type type or below. | |
static __inline__ unsigned | topo_get_type_or_above_depth (topo_topology_t topology, topo_obj_type_t type) |
Returns the depth of objects of type type or above. | |
static __inline__ int | topo_get_type_nbobjs (topo_topology_t topology, topo_obj_type_t type) |
Returns the width of level type type . |
static __inline__ int topo_get_type_nbobjs | ( | topo_topology_t | topology, | |
topo_obj_type_t | type | |||
) | [static] |
Returns the width of level type type
.
If no object for that type exists, 0 is returned. If there are several levels with objects of that type, -1 is returned.
static __inline__ unsigned topo_get_type_or_above_depth | ( | topo_topology_t | topology, | |
topo_obj_type_t | type | |||
) | [static] |
Returns the depth of objects of type type
or above.
If no object of this type is present on the underlying architecture, the function returns the depth of the first "present" object typically containing type
.
static __inline__ unsigned topo_get_type_or_below_depth | ( | topo_topology_t | topology, | |
topo_obj_type_t | type | |||
) | [static] |
Returns the depth of objects of type type
or below.
If no object of this type is present on the underlying architecture, the function returns the depth of the first "present" object typically found inside type
.