The task_for_pid function returns the task associated with a process ID (PID). This function can be called only if the process is owned by the procmod group or if the caller is root.
task_for_pid
procmod
root
Last updated: 2007-02-26