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

# function::ns\_egid(3stap)

Returns the effective gid of a target process as seen in a user namespace

## NAME

function::ns\_egid - Returns the effective gid of a target process as seen in a user namespace

## SYNOPSIS

```
    ns_egid:long()
```

## ARGUMENTS

None

## DESCRIPTION

This function returns the effective gid of a target process as seen in the target user namespace if provided, or the stap process namespace

## SEE ALSO0

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