Creates a new kernel process.
#include <sys/types.h>
#include <sys/errno.h>
pid_t creatp()
The creatp kernel service creates a kernel process. It also allocates and initializes a process block for the new process. Initialization involves these three tasks:
"Using Kernel Processes" in AIX® Version 7.1 Kernel Extensions and Device Support Programming Concepts has a more detailed discussion of how the creatp kernel service creates and initializes kernel processes.
The process calling the creatp service must subsequently call the initp kernel service to complete the process initialization. The initp service also makes the newly created process runnable.
The creatp kernel service can be called from the process environment only.
Item | Description |
---|---|
-1 | Indicates an error. |
Upon successful completion, the creatp kernel service returns the process identifier for the new kernel process.