[ Previous | Next | Contents | Home | Search ]
AIX Version 4.3 Kernel and Subsystems Technical Reference, Volume 1

creatp Kernel Service


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 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.

Execution Environment

The creatp kernel service can be called from the process environment only.

Return Values

-1 Indicates an error.

Upon successful completion, the creatp kernel service returns the process identifier for the new kernel process.

Implementation Specifics

The creatp kernel service is part of the Base Operating System (BOS) Runtime.

Related Information

The initp kernel service.

Process and Exception Management Kernel Services and Using Kernel Processes in AIX Version 4.3 Kernel Extensions and Device Support Programming Concepts.

[ Previous | Next | Contents | Home | Search ]