Scroll to navigation

PMIX_QUERY_RELEASE(3) OpenPMIx PMIX_QUERY_RELEASE(3)

PMIx_Query_release — Release a single pmix_query_t(5) <#man5-pmix-query-t> structure and its contents.

SYNOPSIS

#include <pmix.h>
void PMIx_Query_release(pmix_query_t *p);


Python Syntax

No Python equivalent

INPUT PARAMETERS

•
p: Pointer to the single pmix_query_t(5) <#man5-pmix-query-t> structure to be released.

DESCRIPTION

Release a single heap-allocated pmix_query_t <#man5-pmix-query-t> structure. The function destructs the structure — freeing its keys and qualifiers contents — and then frees the storage of the structure itself. It is exactly equivalent to calling PMIx_Query_free(3) <#man3-pmix-query-free> with a count of 1.

If p is NULL, the function does nothing.

RETURN VALUE

PMIx_Query_release returns no value (void).

NOTES

The PMIX_QUERY_RELEASE convenience macro is a direct wrapper for this function; in addition to calling it, the macro sets the caller’s pointer to NULL.

PMIx_Query_release frees the structure storage and must therefore be used only on storage the library allocated (for example, the single-element array returned by PMIx_Query_create(3) <#man3-pmix-query-create> with n == 1). For a caller-provided (stack or embedded) structure, use PMIx_Query_destruct(3) <#man3-pmix-query-destruct> instead.

See also:

PMIx_Query_construct(3) <#man3-pmix-query-construct>, PMIx_Query_destruct(3) <#man3-pmix-query-destruct>, PMIx_Query_create(3) <#man3-pmix-query-create>, PMIx_Query_free(3) <#man3-pmix-query-free>, PMIx_Query_qualifiers_create(3) <#man3-pmix-query-qualifiers-create>, pmix_query_t(5) <#man5-pmix-query-t>


Copyright

2014-2026, OpenPMIx Community

November 5, 2026