hwloc_obj_type_sscanf (3) Linux Manual Page
NAME
hwlocality_object_strings – Manipulating Object Type, Sets and Attributes as Strings
Functions
const char * hwloc_obj_type_string (hwloc_obj_type_t type)
int hwloc_obj_type_sscanf (const char *string, hwloc_obj_type_t *typep, int *depthattrp, void *typeattrp, size_t typeattrsize)
int hwloc_obj_type_snprintf (char *restrict string, size_t size, hwloc_obj_t obj, int verbose)
int hwloc_obj_attr_snprintf (char *restrict string, size_t size, hwloc_obj_t obj, const char *restrict separator, int verbose)
int hwloc_obj_cpuset_snprintf (char *restrict str, size_t size, size_t nobj, const hwloc_obj_t *restrict objs)
static const char * hwloc_obj_get_info_by_name (hwloc_obj_t obj, const char *name)
void hwloc_obj_add_info (hwloc_obj_t obj, const char *name, const char *value)
Detailed Description
Function Documentation
void hwloc_obj_add_info (hwloc_obj_t obj, const char * name, const char * value)
Add the given info name and value pair to the given object. The info is appended to the existing info array even if another key with the same name already exists.
The input strings are copied before being added in the object infos.
Note:
- This function may be used to enforce object colors in the lstopo graphical output by using ‘lstopoStyle’ as a name and ‘Background=#rrggbb’ as a value. See CUSTOM COLORS in the lstopo(1) manpage for details.
If value contains some non-printable characters, they will be dropped when exporting to XML, see
hwloc_topology_export_xml().
int hwloc_obj_attr_snprintf (char *restrict string, size_t size, hwloc_obj_t obj, const char *restrict separator, int verbose)
Stringify the attributes of a given topology object into a human-readable form. Attribute values are separated by separator.
Only the major attributes are printed in non-verbose mode.
If size is 0, string may safely be NULL.
Returns:
- the number of character that were actually written if not truncating, or that would have been written (not including the ending
