kfd_smi_task_to_pid(9)
β¨ 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β atask_structpointer, typicallyp->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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms