Ubuntu Manpages

Manipulating Object Type, Sets and Attributes as Strings

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().

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 \0).

Stringify the cpuset containing a set of objects. 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 \0).

Search the given key name in object infos and return the corresponding value. If multiple keys match the given name, only the first one is returned.

Returns:

NULL if no such key exists.

hwloc_obj_type_t hwloc_obj_type_of_string (const char *string)

Return an object type from the string.

Returns:

-1 if unrecognized.

Stringify the type of a given topology object into a human-readable form. It differs from hwloc_obj_type_string() because it prints type attributes such as cache depth and type.

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 \0).

Return a stringified topology object type.

Generated automatically by Doxygen for Hardware Locality (hwloc) from the source code.