FUNCTION::NS_PID(3stap)
π FUNCTION::NS_PID π
okay bestie, so this is a page from the SystemTap Tapset Reference, manual section 3stap β it's the context functions corner of the docs, and today's main character is ns_pid. let's get into it π«Ά
β¨ NAME β¨
function::ns_pid β returns the ID of a target process as seen in a pid namespace π¦
like, the ID of a target process as seen in a pid namespace. that's the whole vibe. no cap.
β¨ SYNOPSIS β¨
ns_pid:long()
she takes nothing, she returns a long. iconic behavior honestly π
β¨ ARGUMENTS β¨
None.
literally zero. no args, no drama, no nothing. she simply does not need your input π
β¨ DESCRIPTION β¨
This function returns the ID of a target process as seen in the target pid namespace.
so, real talk: a process can have a whole different ID depending on which pid namespace you're looking at it from β ns_pid hands you the one from the target pid namespace, not whatever the host is seeing. it's giving "same process, different era" β¨
β¨ SEE ALSO β¨
go read that one too, it's the whole friend group πΈ
and that's the tea, bestie π this was pulled straight from the SystemTap Tapset Reference, Version (the truncated one, you know the vibes), dated September 2026. mwah, go probe something πβ¨
π¦ 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