검색

이 콘텐츠는 선택한 언어로 제공되지 않습니다.

9.3. Task data

download PDF
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)
Returns the scheduled cpu for the given task.

9.3.2. task_current

General syntax:
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

General syntax:
task_egid:long (task:long)
Returns the effective group ID of the given task.

9.3.4. task_execname

General syntax:
task_execname:string (task:long)
Returns the name of the given task.

9.3.5. task_euid

General syntax:
task_euid:long (task:long)
Returns the effective user ID of the given task.

9.3.6. task_gid

General syntax:
task_gid:long (task:long)
Returns the group ID of the given task.

9.3.7. task_nice

General syntax:
task_nice:long (task:long)
Returns the nice value of the given task.

9.3.8. task_parent

General syntax:
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

General syntax:
task_pid:long (task:long)
Returns the process ID of the given task.

9.3.10. task_prio

General syntax:
task_prio:long (task:long)
Returns the priority value of the given task.

9.3.11. task_state

General syntax:
task_state:long (task:long)
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

9.3.12. task_tid

General syntax:
task_tid:long (task:long)
Returns the thread ID of the given task.

9.3.13. task_uid

General syntax:
task_uid:long (task:long)
Returns the user ID of the given task.

9.3.14. task_open_file_handles

General syntax:
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

General syntax:
task_max_file_handles:long(task:long)
Returns the maximum number of file handles for the given task.
Red Hat logoGithubRedditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

© 2024 Red Hat, Inc.