Creates a new kernel process and attaches it to a resource set.
#include <sys/rset.h>
int kra_creatp (pid, rstype, rsid, flags)
pid_t *pid;
rstype_t rstype;
rsid_t rsid;
unsigned int flags;
The kra_creatp kernel service creates a new kernel process and attaches it to a resource set. The kra_creatp kernel service attaches the new kernel process to the resource set specified by the rstype and rsid parameters.
The kra_creatp kernel service is similar to the creatp kernel service. See the creatp Kernel Service for details on creating a new kernel process.
Item | Description |
---|---|
pid | Pointer to a pid_t field to receive the process ID of the new kernel process. |
rstype | Specifies the type of resource the new process
will be attached to. This parameter must be the following value, defined
in rset.h.
|
rsid | Identifies the resource set the new process
will be attached to.
|
flags | Reserved for future use. Specify as 0. |
Upon successful completion, the kra_creatp kernel service returns a 0. If unsuccessful, one or more of the following are true:
Item | Description |
---|---|
EINVAL | One of the following is true:
|
ENODEV | The specified resource set does not contain any available processors. |
EFAULT | Invalid address. |
EPERM | One of the following is true:
|
ENOMEM | Memory not available. |