Get some Topology Information


Defines

#define TOPO_TYPE_DEPTH_UNKNOWN   -1
 No object of given type exists in the topology.
#define TOPO_TYPE_DEPTH_MULTIPLE   -2
 Objects of given type exist at different depth in the topology.

Functions

int topo_topology_get_info (topo_topology_t __topo_restrict topology, struct topo_topology_info *__topo_restrict info)
 Get additional global information about the topology.
unsigned topo_get_type_depth (topo_topology_t topology, topo_obj_type_t type)
 Returns the depth of objects of type type.
topo_obj_type_t topo_get_depth_type (topo_topology_t topology, unsigned depth)
 Returns the type of objects at depth depth.
unsigned topo_get_depth_nbobjs (topo_topology_t topology, unsigned depth)
 Returns the width of level at depth depth.

Define Documentation

#define TOPO_TYPE_DEPTH_MULTIPLE   -2

Objects of given type exist at different depth in the topology.

#define TOPO_TYPE_DEPTH_UNKNOWN   -1

No object of given type exists in the topology.


Function Documentation

unsigned topo_get_depth_nbobjs ( topo_topology_t  topology,
unsigned  depth 
)

Returns the width of level at depth depth.

topo_obj_type_t topo_get_depth_type ( topo_topology_t  topology,
unsigned  depth 
)

Returns the type of objects at depth depth.

unsigned topo_get_type_depth ( topo_topology_t  topology,
topo_obj_type_t  type 
)

Returns the depth of objects of type type.

If no object of this type is present on the underlying architecture, or if the OS doesn't provide this kind of information, the function returns TOPO_TYPE_DEPTH_UNKNOWN.

If type is absent but a similar type is acceptable, see also topo_get_type_or_below_depth() and topo_get_type_or_above_depth().

int topo_topology_get_info ( topo_topology_t __topo_restrict  topology,
struct topo_topology_info *__topo_restrict  info 
)

Get additional global information about the topology.

Retrieve additional global information about a loaded topology context. Might be useful if the whole topology depth is needed for instance.


Generated on Fri Jul 3 19:00:23 2009 for libtopology by  doxygen 1.5.9