wpar_getckey Subroutine

Purpose

Returns the static workload partition identifier for the current process.

Library

Standard C Library (libc.a)

Syntax

#include <sys/wpar.h>
ckey_t wpar_getckey (void)

Description

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.

Return Values

Item Description
0 Process is executing within the global environment.
nonzero Static workload partition identification number.