#include <topology.h>
Data Fields | |
topo_obj_type_t | type |
Type of object. | |
signed | os_index |
OS-provided physical index number. | |
union topo_obj_attr_u * | attr |
Object type-specific Attributes. | |
unsigned | depth |
Vertical index in the hierarchy. | |
unsigned | logical_index |
Horizontal index in the whole list of similar objects, could be a "cousin_rank" since it's the rank within the "cousin" list below. | |
struct topo_obj * | next_cousin |
Next object of same type. | |
struct topo_obj * | prev_cousin |
Previous object of same type. | |
struct topo_obj * | father |
Father, NULL if root (system object). | |
unsigned | sibling_rank |
Index in father's children [] array. | |
struct topo_obj * | next_sibling |
Next object below the same father. | |
struct topo_obj * | prev_sibling |
Previous object below the same father. | |
unsigned | arity |
Number of children. | |
struct topo_obj ** | children |
Children, children [0 .. arity -1]. | |
struct topo_obj * | first_child |
First child. | |
struct topo_obj * | last_child |
Last child. | |
void * | userdata |
Application-given private data pointer, initialized to NULL , use it as you wish. | |
topo_cpuset_t | cpuset |
CPUs covered by this object. |
Applications mustn't modify any field except userdata .
unsigned topo_obj::arity |
Number of children.
union topo_obj_attr_u* topo_obj::attr [write] |
Object type-specific Attributes.
struct topo_obj** topo_obj::children [read] |
Children, children
[0 .. arity -1].
CPUs covered by this object.
unsigned topo_obj::depth |
Vertical index in the hierarchy.
struct topo_obj* topo_obj::father [read] |
Father, NULL
if root (system object).
struct topo_obj* topo_obj::first_child [read] |
First child.
struct topo_obj* topo_obj::last_child [read] |
Last child.
unsigned topo_obj::logical_index |
Horizontal index in the whole list of similar objects, could be a "cousin_rank" since it's the rank within the "cousin" list below.
struct topo_obj* topo_obj::next_cousin [read] |
Next object of same type.
struct topo_obj* topo_obj::next_sibling [read] |
Next object below the same father.
signed topo_obj::os_index |
OS-provided physical index number.
struct topo_obj* topo_obj::prev_cousin [read] |
Previous object of same type.
struct topo_obj* topo_obj::prev_sibling [read] |
Previous object below the same father.
unsigned topo_obj::sibling_rank |
Index in father's children
[] array.
Type of object.
void* topo_obj::userdata |
Application-given private data pointer, initialized to NULL
, use it as you wish.