Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:test_and_clear_tsk_thread_flag

Proto:static inline int test_and_clear_tsk_thread_flag(struct task_struct *tsk, int flag)

Type:int

Parameter:

TypeParameterName
struct task_struct *tsk
intflag
1752  Return test_and_clear_ti_thread_flag(task_thread_info(tsk), flag)
Caller
NameDescribe
speculation_ctrl_update_tif
user_disable_single_step
klp_update_patch_stateSwitch the patched state of the task to the set of functions in the target* patch state.* NOTE: If task is not 'current', the caller must ensure the task is inactive.* Otherwise klp_ftrace_handler() might read the wrong 'patch_state' value.