9.3. Task data
These functions return data about a task. They all require a task handle as input, such as the value return by task_current() or the variables prev_task and next_task in the scheduler.ctxswitch probe alias.
9.3.1. task_cpu Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
General syntax:
task_cpu:long (task:long)
task_cpu:long (task:long)
Returns the scheduled cpu for the given task.
9.3.2. task_current Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
General syntax:
task_current:long ()
task_current:long ()
Returns the address of the task_struct representing the current process. This address can be passed to the various task_*() functions to extract more task-specific data.
9.3.3. task_egid Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
General syntax:
task_egid:long (task:long)
task_egid:long (task:long)
Returns the effective group ID of the given task.
9.3.4. task_execname Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
General syntax:
task_execname:string (task:long)
task_execname:string (task:long)
Returns the name of the given task.
9.3.5. task_euid Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
General syntax:
task_euid:long (task:long)
task_euid:long (task:long)
Returns the effective user ID of the given task.
9.3.6. task_gid Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
General syntax:
task_gid:long (task:long)
task_gid:long (task:long)
Returns the group ID of the given task.
9.3.7. task_nice Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
General syntax:
task_nice:long (task:long)
task_nice:long (task:long)
Returns the nice value of the given task.
9.3.8. task_parent Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
General syntax:
task_parent:long (task:long)
task_parent:long (task:long)
Returns the address of the parent task_struct of the given task. This address can be passed to the various task_*() functions to extract more task-specific data.
9.3.9. task_pid Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
General syntax:
task_pid:long (task:long)
task_pid:long (task:long)
Returns the process ID of the given task.
9.3.10. task_prio Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
General syntax:
task_prio:long (task:long)
task_prio:long (task:long)
Returns the priority value of the given task.
9.3.11. task_state Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
General syntax:
task_state:long (task:long)
task_state:long (task:long)
Returns the state of the given task. Possible states are:
9.3.12. task_tid Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
General syntax:
task_tid:long (task:long)
task_tid:long (task:long)
Returns the thread ID of the given task.
9.3.13. task_uid Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
General syntax:
task_uid:long (task:long)
task_uid:long (task:long)
Returns the user ID of the given task.
9.3.14. task_open_file_handles Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
General syntax:
task_open_file_handles:long(task:long)
task_open_file_handles:long(task:long)
Returns the number of open file handles for the given task.
9.3.15. task_max_file_handles Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
General syntax:
task_max_file_handles:long(task:long)
task_max_file_handles:long(task:long)
Returns the maximum number of file handles for the given task.