OS Manuals

function::ns_sid(3stap)

function::ns_sid - Returns the session ID of the current process as seen in a pid namespace

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

function::ns_sid - Returns the session ID of the current process as seen in a pid namespace


ns_sid:long()

None

The namespace-aware session ID of a process is the process group ID of the session leader as seen in the target pid namespace if provided, or the stap process namespace. Session ID is stored in the signal_struct since Kernel 2.6.0.

tapset::context(3stap)

September 2026 SystemTap Tapset Reference Ver

systemtap 5.6-r1 · enterprise-packages · ingested 2026-10-14