Returns the static workload partition identifier for the current process.
Standard C Library (libc.a)
#include <sys/wpar.h>
ckey_t wpar_getckey (void)
The wpar_getckey subroutine returns the workload partition static identifier that is associated with the current process. If the current process is executing within the global environment, the wpar_getckey subroutine returns a value of zero. If the current process is executing within a workload partition, the wpar_getckey subroutine returns a value of nonzero. This identifier that the wpar_getckey subroutine returns is the same each time when the workload partition starts, unless that partition is removed from that system.
Item | Description |
---|---|
0 | Process is executing within the global environment. |
nonzero | Static workload partition identification number. |