FUNCTION::NS_PGRP(3stap)
β¨ NAME β¨
function::ns_pgrp β bestie, this one hands you the process group ID of the current process, but likeβ¦ as seen in a pid namespace π
This page lives in section 3stap of the manual (the SystemTap tapset corner of the universe, iykyk π«Ά).
πΈ SYNOPSIS πΈ
ns_pgrp:long()
That's it. That's the whole call. No little argument salad to memorize π
π ARGUMENTS π
- None β literally nothing to pass in. Zero. Nada. The void. Enjoy it π¦
π DESCRIPTION π
okay so this function returns the process group ID of the current process, as seen in a pid namespace.
Which namespace exactly? Here's the tea:
- if a target pid namespace was provided, you get the process group ID as seen in that target pid namespace π―
- if not, you get it as seen in the stap process namespace π
So same process, same pgrp, but the number you see depends on which namespace you're peeking through. It's giving perspective. It's giving relativity. It's giving "the vibe check depends on where you're standing" πβ¨
π₯ SEE ALSO π₯
and that's the whole page, bestie β no cap, every single detail is right there π
this was the SystemTap Tapset Reference, dated September 2026 π thanks for reading, mwah π
π¦ 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