Gets information about a resource set.
#include <sys/rset.h>
int krs_getinfo(rset, info_type, flags, result)
rsethandle_t rset;
rsinfo_t info_type;
unsigned int flags;
int *result;
The krs_getinfo subroutine retrieves information about the resource set identified by the rset parameter. Depending on the value of the info_type parameter, the krs_getinfo subroutine returns information about the number of available processors, the number of available memory pools, or the amount of available memory contained in the resource rset.
The subroutine can also return global system information such as the maximum system detail level, the symmetric multiprocessor (SMP) and multiple chip module (MCM) system detail levels, and the maximum number of processor or memory pool resources in a resource set.
Item | Description |
---|---|
rset | Specifies a resource set handle of a resource set the information should be retrieved from. This parameter is not meaningful if the info_type parameter is R_MAXSDL, R_MAXPROCS, R_MAXMEMPS, R_SMPSDL, or R_MCMSDL. |
info_type | Specifies the type of information being requested.
One of the following values (defined in rset.h) can be used:
|
flags | Reserved for future use. Must be specified as 0. |
result | Points to an integer where the result is stored on successful completion. |
Item | Description |
---|---|
EINVAL | One of the following is true:
|
EFAULT | Invalid address. |