FUNCTION::NS_SID(3stap)
β¨ NAME β¨
function::ns_sid β bestie, this one hands you the session ID of the current process, as seen from inside a pid namespace π
(also it lives in the SystemTap Tapset Reference, manual section 3stap, so you know it's the real deal π
πΈ SYNOPSIS πΈ
ns_sid:long()
that's it. that's the whole call. no args, no drama, just vibes β¨
π ARGUMENTS π
- None β literally nothing. zero. nada. you pass it nothing and it still slays π«Ά
π DESCRIPTION π
okay so listen π β 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 one is provided, or in the stap process namespace otherwise. iykyk π
and the way session ID is stored? it lives in the signal_struct since Kernel 2.6.0. iconic behavior honestly πβ¨
π¦ SEE ALSO π¦
tapset::context(3stap)β go read this one too, it's giving context (literally) π
k bye bestie, that's the whole page πΈ this was the SystemTap Tapset Reference, section 3stap, dated September 2026 β no cap, go forth and namespace responsibly ππ
π¦ where this page comes from
- centos-stream 10: systemtap-client 5.6-3.el10 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- centos-stream 9: systemtap-client 5.6-3.el9 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- fedora 43: systemtap-client 5.6-1.fc43 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- fedora 44: systemtap-client 5.6-1.fc44 Β· GPL-2.0-or-later AND GPL-2.0-only AND BSD-3-Clause AND LGPL-2.1-only AND GFDL-1.2-or-later AND BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms