table of contents
| PMIX_PROC_DESTRUCT(3) | OpenPMIx | PMIX_PROC_DESTRUCT(3) |
PMIx_Proc_destruct — Clear the contents of a pmix_proc_t(5) <#man5-pmix-proc-t> structure.
SYNOPSIS¶
#include <pmix.h> void PMIx_Proc_destruct(pmix_proc_t *p);
Python Syntax¶
No Python equivalent
INPUT PARAMETERS¶
- •
- p: Pointer to the pmix_proc_t(5) <#man5-pmix-proc-t> structure to be cleared. The storage for the structure itself is not freed.
DESCRIPTION¶
Reset the contents of a pmix_proc_t <#man5-pmix-proc-t> structure. A pmix_proc_t <#man5-pmix-proc-t> carries no heap-allocated payload — its nspace field is a fixed-size character array and its rank is a scalar — so this function performs the same reset as PMIx_Proc_construct(3) <#man3-pmix-proc-construct>: it zeroes the nspace field and sets rank to PMIX_RANK_UNDEF. No memory is freed.
PMIx_Proc_destruct is the counterpart to PMIx_Proc_construct(3) <#man3-pmix-proc-construct> and releases only the contents of the structure, not the structure storage itself. To release an array of proc structures that was heap-allocated by PMIx_Proc_create(3) <#man3-pmix-proc-create>, use PMIx_Proc_free(3) <#man3-pmix-proc-free> instead.
RETURN VALUE¶
PMIx_Proc_destruct returns no value (void).
NOTES¶
PMIx_Proc_destruct is an OpenPMIx convenience routine. The corresponding PMIX_PROC_DESTRUCT macro is implemented as a direct call to this function. Because a pmix_proc_t <#man5-pmix-proc-t> owns no allocated memory, calling this function is functionally equivalent to re-constructing the structure.
See also:
Copyright¶
2014-2026, OpenPMIx Community
| November 5, 2026 |