[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Technical Reference: Kernel and Subsystems, 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.

Related Information

The getpid kernel service.

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

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]