kcid_curproc Kernel Service
Purpose
Returns the current workload partition ID associated with the calling process.
Syntax
#include <sys/wparid.h>
cid_t kcid_curproc ( )
Description
The kcid_curproc kernel service returns the workload partition ID associated with the calling process. You can use this service to determine whether the requesting process is operating within a workload partition (WPAR).
Execution Environment
The kcid_curproc kernel service can be called from the process environment only.
Return Values
If the kcid_curproc kernel service is successful, it returns the workload partition ID associated with the calling process. If the calling process is not operating within a WPAR, the ID returned is equivalent to the WPAR_GLOBAL definition found in the wparid.h header file.