Scroll to navigation

PMIX_TOPOLOGY_FREE(3) OpenPMIx PMIX_TOPOLOGY_FREE(3)

PMIx_Topology_free — Release an array of pmix_topology_t(5) <#man5-pmix-topology-t> structures.

SYNOPSIS

#include <pmix.h>
void PMIx_Topology_free(pmix_topology_t *t, size_t n);


Python Syntax

No Python equivalent

INPUT PARAMETERS


DESCRIPTION

Release an array of pmix_topology_t <#man5-pmix-topology-t> structures that was allocated by PMIx_Topology_create(3) <#man3-pmix-topology-create>. The function destructs the contents of each of the n elements — releasing any embedded hwloc topology object and source string as if by PMIx_Topology_destruct(3) <#man3-pmix-topology-destruct> — and then frees the array storage itself.

If t is NULL the function returns without action.

RETURN VALUE

PMIx_Topology_free returns no value (void).

NOTES

PMIx_Topology_free is the counterpart to PMIx_Topology_create(3) <#man3-pmix-topology-create>. Do not call it on a single structure that was merely constructed with PMIx_Topology_construct(3) <#man3-pmix-topology-construct>; use PMIx_Topology_destruct(3) <#man3-pmix-topology-destruct> for that case, since the structure storage was not allocated by the library.

See also:

PMIx_Topology_create(3) <#man3-pmix-topology-create>, PMIx_Topology_construct(3) <#man3-pmix-topology-construct>, PMIx_Topology_destruct(3) <#man3-pmix-topology-destruct>, pmix_topology_t(5) <#man5-pmix-topology-t>


Copyright

2014-2026, OpenPMIx Community

November 21, 2026