wpar_getcid Subroutine

Purpose

Returns the configured workload partition (WPAR) identifier for the current process.

Library

Standard C Library (libc.a)

Syntax

#include <sys/wpar.h>
cid_t wpar_getcid (void)

Description

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.

Return Values

The wpar_getcid subroutine returns the following values:
Item Description
0 The process is executing within the global environment.
nonzero Configured workload partition identification number.