DOKK / manpages / debian 11 / systemtap-doc / function::pid2task.3stap.en
FUNCTION::PID2TASK(3stap) Context Functions FUNCTION::PID2TASK(3stap)

function::pid2task - The task_struct of the given process identifier


pid2task:long(pid:long)

pid

process identifier

Return the task struct of the given process id.

tapset::task(3stap)

November 2020 SystemTap Tapset Reference