rms_ncaps(3)
NAME
rms_ncaps, rms_getcap – Return information on the Elan capabilities allocated to a
process in a parallel program
SYNOPSIS
cc [ flag ... ] file ... -lrmscall [ library ... ]
#include <rms/rmscall.h>
int rms_ncaps(int *ncaps);
int rms_getcap(int index, ELAN_CAPABILITY *cap);
PARAMETERS
ncaps Number of capabilities allocated.
index Index of a capability to be returned.
cap Pointerto a capability.
DESCRIPTION
rms_ncaps() returns the number of Elan capabilities allocated to a program.
rms_getcap() returns a specified Elan capability. Capabilities are indexed from 0to
ncaps-1.
RETURN VALUES
Upon successful completion, rms_ncaps() and rms_getcap() return 0. Otherwise,
they return -1 and set errno to indicate the error.
EFAULT Invalid address.
EINVAL Invalid capability identifier.
EEXIST Calling process is not part of a parallel program.
SEE ALSO
rms_prgaddcap(3)
C-12 RMS Kernel Module