getppid (BPX1GPP, BPX4GPP) — Get the parent process ID

Function

The getppid callable service gets the parent process ID (PPID) of the calling process.

Requirements

Operation Environment
Authorization: Supervisor state or problem state, any PSW key
Dispatchable unit mode: Task
Cross memory mode: PASN = HASN
AMODE (BPX1GPP): 31-bit
AMODE (BPX4GPP): 64-bit
ASC mode: Primary mode
Interrupt status: Enabled for interrupts
Locks: Unlocked
Control parameters: All parameters must be addressable by the caller and in the primary address space.

Format

CALL BPX1GPP,(Return_value)

AMODE 64 callers use BPX4GPP.

Parameters

Return_value
Returned parameter
Type:
Integer
Length:
Fullword

The name of a fullword in which the getppid service returns the parent process ID of the calling process.

Usage notes

If the getppid service fails, the process ends abnormally.

Related services

Characteristics and restrictions

There are no restrictions on the use of the getppid service.

Examples

For an example using this callable service, see BPX1GPP (getppid) example.