函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:test_and_clear_tsk_thread_flag

函数原型:static inline int test_and_clear_tsk_thread_flag(struct task_struct *tsk, int flag)

返回类型:int

参数:

类型参数名称
struct task_struct *tsk
intflag
1752  返回:test_and_clear_ti_thread_flag(任务栈信息(tsk), flag)
调用者
名称描述
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.