FUNCTION::NS\_PPID(3stap) Context Functions FUNCTION::NS\_PPID(3stap)

# [NAME](#NAME)

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

# [SYNOPSIS](#SYNOPSIS)

```


    ns_ppid:long()
```

# [ARGUMENTS](#ARGUMENTS)

None

# [DESCRIPTION](#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](#SEE_ALSO0)

[*tapset::context*(3stap)](/man/enterprise-packages/systemtap/tapset::context.3stap)

September 2026 SystemTap Tapset Reference Ver

---

Document: function::ns_ppid(3stap) from systemtap 5.6-r0 (Chainguard OS)
Source: https://sourceware.org/git/systemtap.git
