Scroll to navigation

PMIX_DEVICE_DISTANCE_DESTRUCT(3) OpenPMIx PMIX_DEVICE_DISTANCE_DESTRUCT(3)

PMIx_Device_distance_destruct — Release the contents of a pmix_device_distance_t(5) <#man5-pmix-device-distance-t> structure.

SYNOPSIS

#include <pmix.h>
void PMIx_Device_distance_destruct(pmix_device_distance_t *d);


Python Syntax

No Python equivalent

INPUT PARAMETERS

•
d: Pointer to the pmix_device_distance_t(5) <#man5-pmix-device-distance-t> structure whose contents are to be released.

DESCRIPTION

Release any heap memory referenced by the fields of a pmix_device_distance_t <#man5-pmix-device-distance-t> structure. Specifically, the uuid and osname strings are freed if they are non-NULL. The storage for the structure itself is not freed — that remains the responsibility of the caller, since a constructed structure occupies caller-provided storage.

PMIx_Device_distance_destruct is the counterpart to PMIx_Device_distance_construct(3) <#man3-pmix-device-distance-construct> and should be used on any structure that was initialized with it. To release an array of structures that was allocated by PMIx_Device_distance_create(3) <#man3-pmix-device-distance-create>, use PMIx_Device_distance_free(3) <#man3-pmix-device-distance-free> instead, which both destructs the contents and frees the array storage.

RETURN VALUE

PMIx_Device_distance_destruct returns no value (void).

See also:

PMIx_Device_distance_construct(3) <#man3-pmix-device-distance-construct>, PMIx_Device_distance_create(3) <#man3-pmix-device-distance-create>, PMIx_Device_distance_free(3) <#man3-pmix-device-distance-free>, pmix_device_distance_t(5) <#man5-pmix-device-distance-t>


Copyright

2014-2026, OpenPMIx Community

November 5, 2026