18.2.55. PMIx_IOF_channel_string
PMIx_IOF_channel_string — Return the string representation of a
pmix_iof_channel_t value.
18.2.55.1. SYNOPSIS
#include <pmix.h>
const char* PMIx_IOF_channel_string(pmix_iof_channel_t channel);
18.2.55.1.1. Python Syntax
from pmix import *
foo = PMIxClient()
# channel is an integer bitmask of PMIX_FWD_* channel flags
name = foo.iof_channel_string(PMIX_FWD_STDOUT_CHANNEL)
18.2.55.2. INPUT PARAMETERS
channel: An I/O forwarding channel specifier of typepmix_iof_channel_t. This is a bitmask, so more than one channel flag may be set at once. Recognized flags includePMIX_FWD_STDIN_CHANNEL,PMIX_FWD_STDOUT_CHANNEL,PMIX_FWD_STDERR_CHANNEL, andPMIX_FWD_STDDIAG_CHANNEL.
18.2.55.3. DESCRIPTION
Return a human-readable, statically-allocated string describing the given I/O
forwarding channel bitmask. Because channel is a bitmask, the returned string
lists each recognized channel that is set, separated by spaces — for example,
"STDOUT STDERR " when both the standard-output and standard-error channels are
selected. If no recognized channel bit is set, the string "NONE" is returned.
The returned pointer refers to storage owned by the PMIx library. The caller must not modify or free it. The buffer is reused on subsequent calls, so a returned string should be copied if it must persist across another call to this function.
18.2.55.4. RETURN VALUE
Returns a pointer to a constant, statically-allocated character string. The pointer
is always non-NULL and must not be freed by the caller.
See also
PMIx_Job_state_string(3),
PMIx_Device_type_string(3),
pmix_iof_channel_t(5)