Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.

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

General syntax:
task_cpu:long (task:long)
Copy to Clipboard Toggle word wrap
Returns the scheduled cpu for the given task.

9.3.2. task_current

General syntax:
task_current:long ()
Copy to Clipboard Toggle word wrap
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

General syntax:
task_egid:long (task:long)
Copy to Clipboard Toggle word wrap
Returns the effective group ID of the given task.

9.3.4. task_execname

General syntax:
task_execname:string (task:long)
Copy to Clipboard Toggle word wrap
Returns the name of the given task.

9.3.5. task_euid

General syntax:
task_euid:long (task:long)
Copy to Clipboard Toggle word wrap
Returns the effective user ID of the given task.

9.3.6. task_gid

General syntax:
task_gid:long (task:long)
Copy to Clipboard Toggle word wrap
Returns the group ID of the given task.

9.3.7. task_nice

General syntax:
task_nice:long (task:long)
Copy to Clipboard Toggle word wrap
Returns the nice value of the given task.

9.3.8. task_parent

General syntax:
task_parent:long (task:long)
Copy to Clipboard Toggle word wrap
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

General syntax:
task_pid:long (task:long)
Copy to Clipboard Toggle word wrap
Returns the process ID of the given task.

9.3.10. task_prio

General syntax:
task_prio:long (task:long)
Copy to Clipboard Toggle word wrap
Returns the priority value of the given task.

9.3.11. task_state

General syntax:
task_state:long (task:long)
Copy to Clipboard Toggle word wrap
Returns the state of the given task. Possible states are:
TASK_RUNNING           0
TASK_INTERRUPTIBLE     1
TASK_UNINTERRUPTIBLE   2
TASK_STOPPED           4
TASK_TRACED            8
EXIT_ZOMBIE           16
EXIT_DEAD             32
Copy to Clipboard Toggle word wrap

9.3.12. task_tid

General syntax:
task_tid:long (task:long)
Copy to Clipboard Toggle word wrap
Returns the thread ID of the given task.

9.3.13. task_uid

General syntax:
task_uid:long (task:long)
Copy to Clipboard Toggle word wrap
Returns the user ID of the given task.

9.3.14. task_open_file_handles

General syntax:
task_open_file_handles:long(task:long)
Copy to Clipboard Toggle word wrap
Returns the number of open file handles for the given task.

9.3.15. task_max_file_handles

General syntax:
task_max_file_handles:long(task:long)
Copy to Clipboard Toggle word wrap
Returns the maximum number of file handles for the given task.
Nach oben
Red Hat logoGithubredditYoutubeTwitter

Lernen

Testen, kaufen und verkaufen

Communitys

Über Red Hat Dokumentation

Wir helfen Red Hat Benutzern, mit unseren Produkten und Diensten innovativ zu sein und ihre Ziele zu erreichen – mit Inhalten, denen sie vertrauen können. Entdecken Sie unsere neuesten Updates.

Mehr Inklusion in Open Source

Red Hat hat sich verpflichtet, problematische Sprache in unserem Code, unserer Dokumentation und unseren Web-Eigenschaften zu ersetzen. Weitere Einzelheiten finden Sie in Red Hat Blog.

Über Red Hat

Wir liefern gehärtete Lösungen, die es Unternehmen leichter machen, plattform- und umgebungsübergreifend zu arbeiten, vom zentralen Rechenzentrum bis zum Netzwerkrand.

Theme

© 2025 Red Hat