table of contents
hwlocality_info_attr(3) | Hardware Locality (hwloc) | hwlocality_info_attr(3) |
NAME¶
hwlocality_info_attr - Consulting and Adding Info Attributes
SYNOPSIS¶
Functions¶
static const char * hwloc_obj_get_info_by_name
(hwloc_obj_t obj, const char *name)
int hwloc_obj_add_info (hwloc_obj_t obj, const char *name, const
char *value)
Detailed Description¶
Function Documentation¶
int hwloc_obj_add_info (hwloc_obj_t obj, const char * name, const char * value)¶
Add the given name and value pair to the given object info attributes. The info pair is appended to the existing info array even if another pair with the same name already exists.
The input strings are copied before being added in the object infos.
Returns
Note
If name or value contain some non-printable characters, they will be dropped when exporting to XML, see hwloc_topology_export_xml() in hwloc/export.h.
static const char * hwloc_obj_get_info_by_name (hwloc_obj_t obj, const char * name) [inline], [static]¶
Search the given name in object infos and return the corresponding value. If multiple info attributes match the given name, only the first one is returned.
Returns
NULL if no such info attribute exists.
Note
Author¶
Generated automatically by Doxygen for Hardware Locality (hwloc) from the source code.
Mon Dec 4 2023 | Version 2.10.0 |