FUNCTION::PGRP(3stap) Context Functions FUNCTION::PGRP(3stap)

# [NAME](#NAME)

function::pgrp - Returns the process group ID of the current process

# [SYNOPSIS](#SYNOPSIS)

```


    pgrp:long()
```

# [ARGUMENTS](#ARGUMENTS)

None

# [DESCRIPTION](#DESCRIPTION)

This function returns the process group ID of the current process.

# [SEE ALSO0](#SEE_ALSO0)

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

September 2026 SystemTap Tapset Reference Ver

---

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