Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\sched.h Create Date:2022-07-28 05:59:41
Last Modify:2021-07-28 10:30:23 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:task_state_index

Proto:static inline unsigned int task_state_index(struct task_struct *tsk)

Type:unsigned int

Parameter:

TypeParameterName
struct task_struct *tsk
1418  tsk_state = READ_ONCE(run state)
1419  state = (tsk_state | exit state) & get_task_state():
1421  BUILD_BUG_ON_NOT_POWER_OF_2(TASK_REPORT_MAX)
1423  If tsk_state == TASK_IDLE Then state = TASK_REPORT_IDLE
1426  Return 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
Caller
NameDescribe
tracing_sched_switch_trace
tracing_sched_wakeup_trace