Compaq SC RMS Server User Manual


 
rms_defaultPartition(3)
NAME
rms_defaultPartition, rms_numCpus, rms_numNodes, rms_freeCpus – Provide
information on RMS partitions
SYNOPSIS
cc [ flag ... ] file ... -lrmsapi -lrms [ library ... ]
#include <rms/rmsapi.h>
char *rms_defaultPartition();
int rms_numCpus(char *partition);
int rms_numNodes(char *partition);
int rms_freeCpus(char *partition);
PARAMETERS
partition Name of an active partition.
DESCRIPTION
rms_defaultPartition() assigns the name of the default partition, if one exists, to
partition. rms_numCpus() returns the total number of CPUs in the named partition.
rms_numNodes() returns the total number of nodes in the named partition.
rms_freeCpus() returns the number of free CPUs in the named partition.
The calling process must run on a node in the Compaq AlphaServer SC system.
RETURN VALUES
rms_defaultPartition() returns NULL on error. Other functions return 0 or greater
on success or -1 on error.
SEE ALSO
rms_allocateResource(3)
RMS Application Interface D-7