Scroll to navigation

PMIX_PDATA_CONSTRUCT(3) OpenPMIx PMIX_PDATA_CONSTRUCT(3)

PMIx_Pdata_construct — Initialize a caller-provided pmix_pdata_t(5) <#man5-pmix-pdata-t> structure.

SYNOPSIS

#include <pmix.h>
void PMIx_Pdata_construct(pmix_pdata_t *p);


Python Syntax

No Python equivalent

INPUT PARAMETERS

•
p: Pointer to the pmix_pdata_t(5) <#man5-pmix-pdata-t> structure to be initialized. The storage for the structure itself must already exist — it is supplied by the caller (typically declared on the stack or embedded within another object).

DESCRIPTION

Initialize the memory of a pmix_pdata_t <#man5-pmix-pdata-t> that the caller has already allocated. The function zeroes the entire structure — clearing the proc and key fields — and sets the contained value type to PMIX_UNDEF. No heap memory is allocated and no payload is attached.

Because PMIx_Pdata_construct operates on caller-provided storage, it must be paired with PMIx_Pdata_destruct(3) <#man3-pmix-pdata-destruct> to release any payload the structure’s value subsequently acquires. Do not pass a constructed (as opposed to created) structure to PMIx_Pdata_free(3) <#man3-pmix-pdata-free>, as that would attempt to free storage the library did not allocate.

RETURN VALUE

PMIx_Pdata_construct returns no value (void).

EXAMPLES

Construct a structure:

pmix_pdata_t pdata;
PMIx_Pdata_construct(&pdata);


See also:

PMIx_Pdata_destruct(3) <#man3-pmix-pdata-destruct>, PMIx_Pdata_create(3) <#man3-pmix-pdata-create>, PMIx_Pdata_free(3) <#man3-pmix-pdata-free>, PMIx_Pdata_load(3) <#man3-pmix-pdata-load>, PMIx_Pdata_xfer(3) <#man3-pmix-pdata-xfer>, pmix_pdata_t(5) <#man5-pmix-pdata-t>


Copyright

2014-2026, OpenPMIx Community

November 21, 2026