Returns the current workload partition ID associated with the calling process.
#include <sys/wparid.h>
cid_t kcid_curproc ( )
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).
The kcid_curproc kernel service can be called from the process environment only.
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.