---
name: "function::task_ns_gid"
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_gid"
---

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

The group identifier of the task as seen in a namespace

## NAME

function::task\_ns\_gid - The group identifier of the task as seen in a namespace

## SYNOPSIS

```
    task_ns_gid:long(task:long)
```

## ARGUMENTS

*task*

task\_struct pointer

## DESCRIPTION

This function returns the group id of the given task as seen in in the given user namespace.

## SEE ALSO0

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