table of contents
| PMIX_FABRIC_CONSTRUCT(3) | OpenPMIx | PMIX_FABRIC_CONSTRUCT(3) |
PMIx_Fabric_construct — Initialize a caller-provided pmix_fabric_t(5) <#man5-pmix-fabric-t> structure.
SYNOPSIS¶
#include <pmix.h> void PMIx_Fabric_construct(pmix_fabric_t *p);
Python Syntax¶
No Python equivalent
INPUT PARAMETERS¶
- •
- p: Pointer to the pmix_fabric_t(5) <#man5-pmix-fabric-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 fields of a pmix_fabric_t <#man5-pmix-fabric-t> that the caller has already allocated, placing it in a well-defined state before it is passed to PMIx_Fabric_register(3) <#man3-pmix-fabric-register>. Specifically:
- name is set to NULL;
- index is set to SIZE_MAX (indicating that no fabric registration object has yet been assigned by the PMIx library);
- info is set to NULL and ninfo to zero;
- module is set to NULL.
No heap memory is allocated. A caller that wishes to register a specific fabric by name may set the name field after construction and before calling PMIx_Fabric_register(3) <#man3-pmix-fabric-register>; leaving it NULL requests information on the default fabric.
RETURN VALUE¶
PMIx_Fabric_construct returns no value (void).
NOTES¶
The info array and other internal fields of a pmix_fabric_t <#man5-pmix-fabric-t> are populated by the PMIx library when the structure is registered with PMIx_Fabric_register(3) <#man3-pmix-fabric-register>, and are released when the structure is deregistered with PMIx_Fabric_deregister(3) <#man3-pmix-fabric-deregister>. A constructed but never-registered structure holds no library-allocated resources.
EXAMPLES¶
Construct and register a fabric object:
pmix_fabric_t fabric; PMIx_Fabric_construct(&fabric); PMIx_Fabric_register(&fabric, NULL, 0);
See also:
Copyright¶
2014-2026, OpenPMIx Community
| November 21, 2026 |