---
name: "function::ns_ppid"
section: "3stap"
platform: "linux"
package: "systemtap-doc"
version: "5.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/function::ns_ppid"
---

# function::ns\_ppid(3stap)

Returns the process ID of a target process's parent process as seen in a pid namespace

## NAME

function::ns\_ppid - Returns the process ID of a target process's parent process as seen in a pid namespace

## SYNOPSIS

```
    ns_ppid:long()
```

## ARGUMENTS

None

## DESCRIPTION

This function return the process ID of the target proccess's parent process as seen in the target pid namespace if provided, or the stap process namespace.

## SEE ALSO0

[*tapset::context*(3stap)](/tapset::context/3stap.md)
