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

# [NAME](#NAME)

function::sid - Returns the session ID of the current process

# [SYNOPSIS](#SYNOPSIS)

```


    sid:long()
```

# [ARGUMENTS](#ARGUMENTS)

None

# [DESCRIPTION](#DESCRIPTION)

The session ID of a process is the process group ID of the session leader. Session ID is stored in the signal\_struct since Kernel 2.6.0.

# [SEE ALSO0](#SEE_ALSO0)

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

September 2026 SystemTap Tapset Reference Ver

---

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