FUNCTION::TASK_NS_TI(3stap)

πŸ’– function::task_ns_tid πŸ’–

okay so bestie, welcome to the SystemTap Tapset Reference β€” Context Functions chapter, section 3stap, and today's main character is task_ns_tid. she's a little function and she's literally so useful, i'm obsessed 🫢


✨ NAME ✨

function::task_ns_tid β€” the thread identifier of the task as seen in a namespace 🌸

like, yes, that namespace. the pid one. we'll get there, chill πŸ’…


✨ SYNOPSIS ✨

task_ns_tid:long(task:long)

look at her. one argument, returns a long. clean. iconic. no notes ✨


✨ ARGUMENTS ✨

  • task β€” a task_struct pointer, aka the little handhold you use to point at the task you're curious about πŸŽ€

✨ DESCRIPTION ✨

so here's the vibe: this function hands you back the thread id of the task you passed in β€” but as seen in the pid namespace. not the global one, the namespaced one. iykyk 😌

fr fr, that's the whole thing. give her a task, she gives you the tid the way that namespace sees it. periodt πŸ’–


✨ SEE ALSO ✨


SystemTap Tapset Reference Β· Version Β· September 2026

and that's a wrap on FUNCTION::TASK_NS_TI(3stap) πŸ’…βœ¨ go forth and namespace responsibly, love u, byeee πŸ¦‹πŸ’œ

πŸ“¦ where this page comes from