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

# function::task\_ns\_tid(3stap)

The thread identifier of the task as seen in a namespace

## NAME

function::task\_ns\_tid - The thread identifier of the task as seen in a namespace

## SYNOPSIS

```
    task_ns_tid:long(task:long)
```

## ARGUMENTS

*task*

task\_struct pointer

## DESCRIPTION

This function returns the thread id of the given task as seen in the pid namespace.

## SEE ALSO0

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