krs_init Subroutine
Purpose
Initializes a previously allocated resource set.
Syntax
#include <sys/rset.h>
int krs_init (rset, flags)
rsethandle_t rset;
unsigned int flags;
Description
The krs_init subroutine initializes a previously allocated resource set. The resource set is initialized according to information specified by the flags parameter.
Parameters
Item | Description |
---|---|
rset | Specifies the handle of the resource set to initialize. |
flags | Specifies how the resource set is initialized.
It takes one of the following values, defined in rset.h:
|
Return Values
Upon
successful completion, the krs_init subroutine returns a 0. If unsuccessful,
the following is returned:
Item | Description |
---|---|
EINVAL | The flags parameter contains an invalid value. |