.\" 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_REGATTR_T" "5" "Nov 05, 2026" "" "OpenPMIx"
.sp
\fIpmix_regattr_t\fP — Registers attribute support for a PMIx function
.SH SYNTAX
.SS C Syntax
.INDENT 0.0
.INDENT 3.5
.sp
.EX
#include <pmix_common.h>

typedef struct pmix_regattr_t {
    char *name;
    pmix_key_t string;
    pmix_data_type_t type;
    char **description;
} pmix_regattr_t;
.EE
.UNINDENT
.UNINDENT
.SH DESCRIPTION
.sp
The \fIpmix_regattr_t\fP structure is used to register attribute support for a PMIx
function.
.sp
The fields are:
.INDENT 0.0
.TP
.B \fBname\fP
The actual name of the attribute — e.g., \fB\(dqPMIX_MAX_PROCS\(dq\fP\&. Must be a
\fBNULL\fP\-terminated string composed of standard alphanumeric values supported
by common utilities such as \fBstrcmp\fP\&.
.TP
.B \fBstring\fP
The literal string value of the attribute — e.g., \fB\(dqpmix.max.size\(dq\fP
for the \fBPMIX_MAX_PROCS\fP attribute. Must be a \fBNULL\fP\-terminated string
composed of standard alphanumeric values.
.TP
.B \fBtype\fP
A PMIx data type (pmix_data_type_t \%<#\:man5-pmix-data-type-t>) identifying
the type of data associated with this attribute.
.TP
.B \fBdescription\fP
A \fBNULL\fP\-terminated array of strings describing the attribute, optionally
including a human\-readable description of the range of accepted values —
e.g., \fB\(dqALL POSITIVE INTEGERS\(dq\fP, or a comma\-delimited list of enum value
names.
.UNINDENT
.sp
Although not strictly required, both PMIx library implementers and host
environments are strongly encouraged to provide both human\-readable and
machine\-parsable descriptions of supported attributes when registering them.
.SH DESCRIPTIVE VALUE ATTRIBUTES
.sp
Beyond the free\-form \fBdescription\fP field, the following keys provide a
standardized, machine\-parsable vocabulary for describing the range of values an
attribute accepts:
.INDENT 0.0
.IP \(bu 2
\fBPMIX_MAX_VALUE\fP (varies) — the maximum valid value for the associated
attribute. The value carries the attribute’s own declared data type.
.IP \(bu 2
\fBPMIX_MIN_VALUE\fP (varies) — the minimum valid value for the associated
attribute. The value carries the attribute’s own declared data type.
.IP \(bu 2
\fBPMIX_ENUM_VALUE\fP (char*) — the accepted values for the associated
attribute. Numerical values shall be presented in a form convertible to the
attribute’s declared data type; named values (i.e., those defined by constant
names via a typical C\-language \fBenum\fP declaration) must be provided as their
numerical equivalent.
.UNINDENT
.SH STATIC INITIALIZER
.sp
A statically declared \fBpmix_regattr_t\fP may be initialized with the
\fBPMIX_REGATTR_STATIC_INIT\fP macro, which sets \fBname\fP and \fBdescription\fP to \fBNULL\fP, clears the \fBstring\fP key, and sets \fBtype\fP to \fBPMIX_UNDEF\fP:
.INDENT 0.0
.INDENT 3.5
.sp
.EX
pmix_regattr_t attr = PMIX_REGATTR_STATIC_INIT;
.EE
.UNINDENT
.UNINDENT
.sp
\fBSee also:\fP
.INDENT 0.0
.INDENT 3.5
PMIx_Query_info(3) \%<#\:man3-pmix-query-info>,
pmix_info_t(5) \%<#\:man5-pmix-info-t>,
pmix_data_type_t(5) \%<#\:man5-pmix-data-type-t>
.UNINDENT
.UNINDENT
.SH Copyright
2014-2026, OpenPMIx Community
.\" End of generated man page.
