函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\sched.h Create Date:2022-07-27 06:58:33
Last Modify:2021-07-28 10:30:23 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:task_state_index

函数原型:static inline unsigned int task_state_index(struct task_struct *tsk)

返回类型:unsigned int

参数:

类型参数名称
struct task_struct *tsk
1418  tsk_state等于READ_ONCE(任务状态)
1419  state等于tsk_state按位或进程退出时状态的值按位与get_task_state():
1421  BUILD_BUG_ON_NOT_POWER_OF_2(TASK_REPORT_MAX)
1423  如果tsk_state恒等于TASK_IDLEstate等于TASK_REPORT_IDLE
1426  返回:ls - find last set bit in word*@x: the word to search* This is defined in a similar way as the libc and compiler builtin* ffs, but returns the position of the most significant set bit.* fls(value) returns 0 if value is 0 or the position of the last
调用者
名称描述
tracing_sched_switch_trace
tracing_sched_wakeup_trace
task_state_to_char
__trace_sched_switch_stateTracepoint for waking up a new task: