FUNCTION::SID(3stap)
β¨ NAME β¨
function::sid β bestie, this one hands you the session ID of the process you're currently vibing in π
(also hi, this is a page from FUNCTION::SID(3stap), the Context Functions corner of the manual π)
πΈ SYNOPSIS πΈ
sid:long()
That's it. That's the whole thing. No args, no drama, just a return value π«Ά
π ARGUMENTS π
- None β literally nothing. Empty hands. She takes no arguments and she doesn't want any π
π DESCRIPTION π
okay so, quick lore drop π β the session ID of a process is the process group ID of the session leader. That's the whole definition, no cap.
And where does this live? The session ID is stored in the signal_struct since Kernel 2.6.0 β. So if you're on anything older than that, this is not the vibe. But if you're on 2.6.0 or later, she's right there waiting for you, iconic behavior honestly π
π¦ SEE ALSO π¦
tapset::context(3stap)β the rest of the context besties, go say hi π
SystemTap Tapset Reference Ver, September 2026 π β that's the version and the date, so if you're reading this in the future, hey, the manual saw you coming π§ and yes, this was FUNCTION::SID(3stap) all along, slay π
β¨
π¦ 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