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