Defines | |
#define | TOPO_OBJ_TYPE_MAX (TOPO_OBJ_MISC+1) |
Maximal value of an Object Type. | |
Enumerations | |
enum | topo_obj_type_t { TOPO_OBJ_SYSTEM, TOPO_OBJ_MACHINE, TOPO_OBJ_NODE, TOPO_OBJ_SOCKET, TOPO_OBJ_CACHE, TOPO_OBJ_CORE, TOPO_OBJ_PROC, TOPO_OBJ_MISC } |
Type of topology Object. More... | |
Functions | |
int | topo_get_type_order (topo_obj_type_t type) |
Convert an object type into a number that permits to compare them. | |
topo_obj_type_t | topo_get_order_type (int order) |
Converse of topo_get_type_oder(). |
#define TOPO_OBJ_TYPE_MAX (TOPO_OBJ_MISC+1) |
Maximal value of an Object Type.
enum topo_obj_type_t |
Type of topology Object.
Do not rely on the ordering of the values as new ones may be defined in the future! If you need to compare types, use the value returned by topo_get_type_order() instead.
topo_obj_type_t topo_get_order_type | ( | int | order | ) |
Converse of topo_get_type_oder().
This is the converse of topo_get_type_order().
int topo_get_type_order | ( | topo_obj_type_t | type | ) |
Convert an object type into a number that permits to compare them.
Types shouldn't be compared as they are, since newer ones may be added in the future. This function returns an integer value that can be used instead.