table of contents
| PMIX_INFO_LIST_ADD_VALUE(3) | OpenPMIx | PMIX_INFO_LIST_ADD_VALUE(3) |
PMIx_Info_list_add_value — Append an entry to an opaque pmix_info_t(5) <#man5-pmix-info-t> list from a key and a pmix_value_t
SYNOPSIS¶
#include <pmix.h> pmix_status_t PMIx_Info_list_add_value(void *ptr,
const char *key,
const pmix_value_t *value);
Python Syntax¶
No Python equivalent
INPUT PARAMETERS¶
- ptr: Opaque list handle returned by PMIx_Info_list_start(3) <#man3-pmix-info-list-start>.
- key: String key to be loaded. Must be no longer than PMIX_MAX_KEYLEN.
- value: Pointer to a pmix_value_t whose contents are to be copied into the new entry.
DESCRIPTION¶
Create a new pmix_info_t <#man5-pmix-info-t> entry from the provided key and an already-constructed pmix_value_t, and append it to the end of the list identified by ptr. The key is loaded into the entry and the value is transferred with a deep copy, so the caller’s value may be modified or freed after the function returns.
This routine is a convenience for cases where the caller already holds the data in a pmix_value_t rather than as a raw pointer plus pmix_data_type_t(5) <#man5-pmix-data-type-t>. Compare PMIx_Info_list_add(3) <#man3-pmix-info-list-add>, which takes the raw value and type directly. No duplicate-key check is performed; use PMIx_Info_list_add_value_unique(3) <#man3-pmix-info-list-add-value-unique> for that.
RETURN VALUE¶
Returns PMIX_SUCCESS on success, or a negative PMIx error constant on failure — PMIX_ERR_NOMEM if the entry could not be allocated, or any error returned while copying the value.
See also:
Copyright¶
2014-2026, OpenPMIx Community
| November 5, 2026 |