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

# function::ns\_pid(3stap)

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

## NAME

function::ns\_pid - Returns the ID of a target process as seen in a pid namespace

## SYNOPSIS

```
    ns_pid:long()
```

## ARGUMENTS

None

## DESCRIPTION

This function returns the ID of a target process as seen in the target pid namespace.

## SEE ALSO0

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