Finding similar Objects Included in a CPU set


Functions

static __inline__ topo_obj_t topo_get_next_obj_below_cpuset_by_depth (topo_topology_t topology, const topo_cpuset_t *set, unsigned depth, topo_obj_t prev)
 Return the next object at depth depth included in CPU set set.
static __inline__ topo_obj_t topo_get_next_obj_below_cpuset (topo_topology_t topology, const topo_cpuset_t *set, topo_obj_type_t type, topo_obj_t prev)
 Return the next object of type type included in CPU set set.
static __inline__ topo_obj_t topo_get_obj_below_cpuset_by_depth (topo_topology_t topology, const topo_cpuset_t *set, unsigned depth, unsigned index)
 Return the index -th object at depth depth included in CPU set set.
static __inline__ topo_obj_t topo_get_obj_below_cpuset (topo_topology_t topology, const topo_cpuset_t *set, topo_obj_type_t type, unsigned index)
 Return the index -th object of type type included in CPU set set.
static __inline__ unsigned topo_get_nbobjs_below_cpuset_by_depth (topo_topology_t topology, const topo_cpuset_t *set, unsigned depth)
 Return the number of objects at depth depth included in CPU set set.
static __inline__ int topo_get_nbobjs_below_cpuset (topo_topology_t topology, const topo_cpuset_t *set, topo_obj_type_t type)
 Return the number of objects of type type included in CPU set set.

Function Documentation

static __inline__ int topo_get_nbobjs_below_cpuset ( topo_topology_t  topology,
const topo_cpuset_t set,
topo_obj_type_t  type 
) [static]

Return the number of objects of type type included in CPU set set.

If no object for that type exists below CPU set set, 0 is returned. If there are several levels with objects of that type below CPU set set, -1 is returned.

static __inline__ unsigned topo_get_nbobjs_below_cpuset_by_depth ( topo_topology_t  topology,
const topo_cpuset_t set,
unsigned  depth 
) [static]

Return the number of objects at depth depth included in CPU set set.

static __inline__ topo_obj_t topo_get_next_obj_below_cpuset ( topo_topology_t  topology,
const topo_cpuset_t set,
topo_obj_type_t  type,
topo_obj_t  prev 
) [static]

Return the next object of type type included in CPU set set.

If there are multiple or no depth for given type, return NULL and let the caller fallback to topo_get_next_obj_below_cpuset_by_depth().

static __inline__ topo_obj_t topo_get_next_obj_below_cpuset_by_depth ( topo_topology_t  topology,
const topo_cpuset_t set,
unsigned  depth,
topo_obj_t  prev 
) [static]

Return the next object at depth depth included in CPU set set.

If prev is NULL, return the first object at depth depth included in set. The next invokation should pass the previous return value in prev so as to obtain the next object in set.

static __inline__ topo_obj_t topo_get_obj_below_cpuset ( topo_topology_t  topology,
const topo_cpuset_t set,
topo_obj_type_t  type,
unsigned  index 
) [static]

Return the index -th object of type type included in CPU set set.

If there are multiple or no depth for given type, return NULL and let the caller fallback to topo_get_obj_below_cpuset_by_depth().

static __inline__ topo_obj_t topo_get_obj_below_cpuset_by_depth ( topo_topology_t  topology,
const topo_cpuset_t set,
unsigned  depth,
unsigned  index 
) [static]

Return the index -th object at depth depth included in CPU set set.


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