[ Previous | Next | Contents | Home | Search ]
AIX Version 4.3 Kernel and Subsystems Technical Reference, Volume 1

getppidx Kernel Service

Purpose

Gets the parent process ID of the specified process.

Syntax

#include <sys/types.h> 
#include <sys/errno.h>
pid_t getppidx (ProcessID) 
pid_t ProcessID;

Parameter

ProcessID Specifies the process ID. If this parameter is 0, then the parent process ID of the calling process will be returned.

Description

The getppidx kernel service returns the parent process ID of the specified process.

Execution Environment

The getppidx kernel service can be called from the process environment only.

Return Values

-1 Indicates that the ProcessID parameter is invalid.

The getppidx service returns the parent process ID of the calling process.

Implementation Specifics

The getppidx kernel service is part of the Base Operating System (BOS) Runtime.

Related Information

The getpid kernel service.

Process and Exception Management Kernel Services and Understanding Execution Environments in AIX Version 4.3 Kernel Extensions and Device Support Programming Concepts.


[ Previous | Next | Contents | Home | Search ]