Returns the configured workload partition (WPAR) identifier for the current process.
Standard C Library (libc.a)
#include <sys/wpar.h>
cid_t wpar_getcid (void)
The wpar_getcid subroutine returns the configured identifier associated with the workload partition of the current process. If the current process is executing within the global environment, wpar_getcid subroutine returns the value of zero. If the current process is executing within a workload partition, the workload partition subroutine returns a nonzero value. This identifier can be different each time that a workload partition is started on a system.
Item | Description |
---|---|
0 | The process is executing within the global environment. |
nonzero | Configured workload partition identification number. |