.\" Man page generated from reStructuredText
.\" by the Docutils 0.23 manpage writer.
.
.
.nr rst2man-indent-level 0
.
.de1 rstReportMargin
\\$1 \\n[an-margin]
level \\n[rst2man-indent-level]
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
-
\\n[rst2man-indent0]
\\n[rst2man-indent1]
\\n[rst2man-indent2]
..
.de1 INDENT
.\" .rstReportMargin pre:
. RS \\$1
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
. nr rst2man-indent-level +1
.\" .rstReportMargin post:
..
.de UNINDENT
. RE
.\" indent \\n[an-margin]
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
.nr rst2man-indent-level -1
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
..
.TH "PMIX_INFO_LIST_GET_INFO" "3" "Nov 05, 2026" "" "OpenPMIx"
.sp
\fBPMIx_Info_list_get_info\fP — Iterate over the
pmix_info_t(5) \%<#\:man5-pmix-info-t> entries of an opaque list
.SH SYNOPSIS
.INDENT 0.0
.INDENT 3.5
.sp
.EX
#include <pmix.h>

pmix_info_t* PMIx_Info_list_get_info(void *ptr, void *prev, void **next);
.EE
.UNINDENT
.UNINDENT
.SS Python Syntax
.sp
No Python equivalent
.SH INPUT/OUTPUT PARAMETERS
.INDENT 0.0
.IP \(bu 2
\fBptr\fP: (IN) Opaque list handle returned by
PMIx_Info_list_start(3) \%<#\:man3-pmix-info-list-start>\&.
.IP \(bu 2
\fBprev\fP: (IN) Opaque pointer to the current list element, as previously
returned in \fBnext\fP\&. Pass \fBNULL\fP to obtain the first element.
.IP \(bu 2
\fBnext\fP: (OUT) Set to an opaque pointer to the following list element, or to
\fBNULL\fP when the returned element is the last on the list.
.UNINDENT
.SH DESCRIPTION
.sp
Retrieve a pmix_info_t \%<#\:man5-pmix-info-t> entry from the list identified
by \fBptr\fP and advance an iteration cursor. Passing \fBNULL\fP for \fBprev\fP
returns the first entry on the list; otherwise \fBprev\fP must be the opaque
element pointer that a previous call returned through \fBnext\fP\&. On return,
\fB*next\fP is set to the opaque handle of the following element, or to \fBNULL\fP
when the returned element is the last on the list.
.sp
Iterate by repeatedly calling \fBPMIx_Info_list_get_info\fP, feeding the \fBnext\fP
value from one call as the \fBprev\fP argument of the following call, until
\fB*next\fP becomes \fBNULL\fP\&.
.sp
The returned pmix_info_t \%<#\:man5-pmix-info-t> pointer refers to storage
owned by the list; the caller must not free it and must not use it after the
list has been released.
.SH RETURN VALUE
.sp
Returns a pointer to the current pmix_info_t \%<#\:man5-pmix-info-t> entry.
.SH NOTES
.sp
The \fBprev\fP parameter names the \fIcurrent\fP element to be returned, and \fBnext\fP
receives the \fIfollowing\fP element — \fBnext\fP is the value to feed back as
\fBprev\fP on the subsequent call. This routine performs no locking; the list must
not be modified while an iteration is in progress.
.SH EXAMPLES
.INDENT 0.0
.INDENT 3.5
.sp
.EX
pmix_info_t *ip;
void *cur, *nxt;

cur = NULL;
do {
    ip = PMIx_Info_list_get_info(ilist, cur, &nxt);
    /* use ip ... */
    cur = nxt;
} while (NULL != nxt);
.EE
.UNINDENT
.UNINDENT
.sp
\fBSee also:\fP
.INDENT 0.0
.INDENT 3.5
PMIx_Info_list_start(3) \%<#\:man3-pmix-info-list-start>,
PMIx_Info_list_get_size(3) \%<#\:man3-pmix-info-list-get-size>,
PMIx_Info_list_add(3) \%<#\:man3-pmix-info-list-add>,
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>
.UNINDENT
.UNINDENT
.SH Copyright
2014-2026, OpenPMIx Community
.\" End of generated man page.
