Scroll to navigation

PMIX_CPUSET_DESTRUCT(3) OpenPMIx PMIX_CPUSET_DESTRUCT(3)

PMIx_Cpuset_destruct — Release the contents of a pmix_cpuset_t(5) <#man5-pmix-cpuset-t> structure.

SYNOPSIS

#include <pmix.h>
void PMIx_Cpuset_destruct(pmix_cpuset_t *cpuset);


Python Syntax

No Python equivalent

INPUT PARAMETERS

•
cpuset: Pointer to the pmix_cpuset_t(5) <#man5-pmix-cpuset-t> structure whose contents are to be released.

DESCRIPTION

Release the contents of a pmix_cpuset_t <#man5-pmix-cpuset-t>. The source string and the bitmap object are freed via the underlying hardware-locality (HWLOC) support, and the corresponding fields are cleared.

Only the contents are released; the storage for the structure itself is not freed. This routine is therefore the correct counterpart to PMIx_Cpuset_construct(3) <#man3-pmix-cpuset-construct> for caller-provided (stack or embedded) structures.

RETURN VALUE

PMIx_Cpuset_destruct returns no value (void).

NOTES

To release an array of cpuset structures obtained from PMIx_Cpuset_create(3) <#man3-pmix-cpuset-create>, including the array storage itself, use PMIx_Cpuset_free(3) <#man3-pmix-cpuset-free> instead.

The convenience macro PMIX_CPUSET_DESTRUCT is provided as a direct wrapper around this function.

See also:

PMIx_Cpuset_construct(3) <#man3-pmix-cpuset-construct>, PMIx_Cpuset_create(3) <#man3-pmix-cpuset-create>, PMIx_Cpuset_free(3) <#man3-pmix-cpuset-free>, pmix_cpuset_t(5) <#man5-pmix-cpuset-t>


Copyright

2014-2026, OpenPMIx Community

November 5, 2026