FUNCTION::NS_GID(3stap)

✨ FUNCTION::NS_GID ✨

okay bestie, welcome to the SystemTap Tapset Reference, manual section 3stap πŸŽ€ this one's a context function and it's literally so chill. sit down, hydrate, let's go πŸ’–

🌸 NAME 🌸

function::ns_gid β€” hands you the group ID of a target process, exactly how it looks from inside a user namespace πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

ns_gid:long()

πŸ’… ARGUMENTS πŸ’…

  • None β€” that's it. zero. nada. she takes no arguments, she's low maintenance, she's that girl 🫢

🌈 DESCRIPTION 🌈

okay so here's the tea: this function returns the group ID of a target process as seen in the target user namespace β€” if one was provided β€” otherwise it falls back to the stap process namespace. no cap, that's the whole vibe ✨

so like: gimme a namespace, you get the gid from that namespace's point of view. don't gimme one, you get the gid from stap's own namespace. either way you get a gid, and either way it's giving main character energy πŸ’œ

πŸ“ SEE ALSO πŸ“


and that's the page!! 🌟 this was the SystemTap Tapset Reference, dated September 2026, and it's a whole 3stap moment πŸŽ€ mwah, go probe something iconic πŸ‘‘πŸ’…

πŸ“¦ where this page comes from