Functions | |
void | hwloc_topology_export_xml (hwloc_topology_t topology, const char *xmlpath) |
void | hwloc_topology_export_xmlbuffer (hwloc_topology_t topology, char **xmlbuffer, int *buflen) |
hwloc_obj_t | hwloc_topology_insert_misc_object_by_cpuset (hwloc_topology_t topology, hwloc_const_cpuset_t cpuset, const char *name) |
hwloc_obj_t | hwloc_topology_insert_misc_object_by_parent (hwloc_topology_t topology, hwloc_obj_t parent, const char *name) |
void hwloc_topology_export_xml | ( | hwloc_topology_t | topology, |
const char * | xmlpath | ||
) |
Export the topology into an XML file.
This file may be loaded later through hwloc_topology_set_xml().
void hwloc_topology_export_xmlbuffer | ( | hwloc_topology_t | topology, |
char ** | xmlbuffer, | ||
int * | buflen | ||
) |
Export the topology into a newly-allocated XML memory buffer.
xmlbuffer
is allocated by the callee and should be freed with xmlFree later in the caller.
This memory buffer may be loaded later through hwloc_topology_set_xmlbuffer().
hwloc_obj_t hwloc_topology_insert_misc_object_by_cpuset | ( | hwloc_topology_t | topology, |
hwloc_const_cpuset_t | cpuset, | ||
const char * | name | ||
) |
Add a MISC object to the topology.
A new MISC object will be created and inserted into the topology at the position given by bitmap cpuset
.
cpuset and name will be copied.
hwloc_obj_t hwloc_topology_insert_misc_object_by_parent | ( | hwloc_topology_t | topology, |
hwloc_obj_t | parent, | ||
const char * | name | ||
) |
Add a MISC object to the topology.
A new MISC object will be created and inserted into the topology at the position given by parent.
name will be copied.