Functions | |
const char * | hwloc_obj_type_string (hwloc_obj_type_t type) |
Return a stringified topology object type. | |
hwloc_obj_type_t | hwloc_obj_type_of_string (const char *string) |
Return an object type from the string. | |
int | hwloc_obj_snprintf (char *restrict string, size_t size, hwloc_topology_t topology, hwloc_obj_t obj, const char *restrict indexprefix, int verbose) |
Stringify a given topology object into a human-readable form. | |
int | hwloc_obj_cpuset_snprintf (char *restrict str, size_t size, size_t nobj, const hwloc_obj_t *restrict objs) |
Stringify the cpuset containing a set of objects. |
int hwloc_obj_cpuset_snprintf | ( | char *restrict | str, | |
size_t | size, | |||
size_t | nobj, | |||
const hwloc_obj_t *restrict | objs | |||
) |
Stringify the cpuset containing a set of objects.
int hwloc_obj_snprintf | ( | char *restrict | string, | |
size_t | size, | |||
hwloc_topology_t | topology, | |||
hwloc_obj_t | obj, | |||
const char *restrict | indexprefix, | |||
int | verbose | |||
) |
Stringify a given topology object into a human-readable form.
Fill string string
up to size
characters with the description of topology object obj
in topology topology
.
If verbose
is set, a longer description is used. Otherwise a short description is used.
indexprefix
is used to prefix the os_index
attribute number of the object in the description. If NULL
, the #
character is used.
hwloc_obj_type_t hwloc_obj_type_of_string | ( | const char * | string | ) |
Return an object type from the string.
const char* hwloc_obj_type_string | ( | hwloc_obj_type_t | type | ) |
Return a stringified topology object type.