FUNCTION::TASK\_NS\_PI(3stap) Context Functions FUNCTION::TASK\_NS\_PI(3stap)

# [NAME](#NAME)

function::task\_ns\_pid - The process identifier of the task

# [SYNOPSIS](#SYNOPSIS)

```


    task_ns_pid:long(task:long)
```

# [ARGUMENTS](#ARGUMENTS)

*task*

task\_struct pointer

# [DESCRIPTION](#DESCRIPTION)

This fucntion returns the process id of the given task based on the specified pid namespace..

# [SEE ALSO0](#SEE_ALSO0)

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

September 2026 SystemTap Tapset Reference Ver

---

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