Scroll to navigation

PMIX_INFO_LIST_XFER_UNIQUE(3) OpenPMIx PMIX_INFO_LIST_XFER_UNIQUE(3)

PMIx_Info_list_xfer_unique — Copy an existing pmix_info_t(5) <#man5-pmix-info-t> onto an opaque list only if its key is not already present

SYNOPSIS

#include <pmix.h>
pmix_status_t PMIx_Info_list_xfer_unique(void *ptr,

const pmix_info_t *info,
bool overwrite);


Python Syntax

No Python equivalent

INPUT PARAMETERS

  • ptr: Opaque list handle returned by PMIx_Info_list_start(3) <#man3-pmix-info-list-start>.
  • info: Pointer to the source pmix_info_t <#man5-pmix-info-t> to be copied onto the list.
  • overwrite: If true and an entry with the same key already exists, its value is replaced with a copy of the source value. If false, an existing entry is left unchanged.

DESCRIPTION

PMIx_Info_list_xfer_unique is the key-unique variant of PMIx_Info_list_xfer(3) <#man3-pmix-info-list-xfer>. The list identified by ptr is first scanned for an existing entry whose key matches that of the source info:

  • If a match is found and overwrite is true, the existing value is destructed and replaced with a copy of the source value. No new entry is appended.
  • If a match is found and overwrite is false, the list is left unchanged.
  • If no match is found, a full copy of the source info is appended to the end of the list.

The transfer is a deep copy; the source info may be modified or freed once the function returns.

RETURN VALUE

Returns PMIX_SUCCESS when the entry was added, updated, or intentionally left unchanged; or a negative PMIx error constant such as PMIX_ERR_NOMEM if a new entry could not be allocated.

See also:

PMIx_Info_list_start(3) <#man3-pmix-info-list-start>, PMIx_Info_list_xfer(3) <#man3-pmix-info-list-xfer>, PMIx_Info_list_add_unique(3) <#man3-pmix-info-list-add-unique>, PMIx_Info_list_add_value_unique(3) <#man3-pmix-info-list-add-value-unique>, PMIx_Info_list_convert(3) <#man3-pmix-info-list-convert>, PMIx_Info_list_release(3) <#man3-pmix-info-list-release>, pmix_info_t(5) <#man5-pmix-info-t>


Copyright

2014-2026, OpenPMIx Community

November 21, 2026