kfd_smi_task_to_pid(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay bestie, this page is kfd_smi_task_to_pid(9) from the Kernel API Manual, and its whole vibe is literally Convert task to namespace-aware PID. tiny page, big main-character energy πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

pid_t kfd_smi_task_to_pid (struct task_struct *task );

🌸 ARGUMENTS 🌸

  • task β€” a task_struct pointer, typically p->lead_thread 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

Returns the PID as it appears in the task's own PID namespace. For containerized processes, this returns the container-local PID (what getpid returns), not the global host PID. no cap, that's the whole point ✨

Returns 0 if task is NULL. periodt πŸ’–


πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/gpu/drm/amd/amdkfd/kfd_smi_events.c β€” that's the reference, iykyk 🧚


source/version ./drivers/gpu/drm/amd/amdkfd, dated October 2026 β€” mwah, bye bestie πŸ’œ

πŸ“¦ where this page comes from