函数逻辑报告

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_set_tsk_thread_flag

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

返回类型:int

参数:

类型参数名称
struct task_struct *tsk
intflag
1747  返回:test_and_set_ti_thread_flag(任务栈信息(tsk), flag)
调用者
名称描述
mark_oom_victimmark_oom_victim - mark the given task as OOM victim*@tsk: task to mark* Has to be called with oom_lock held and never after* oom has been disabled already.* under task_lock or operate on the current).
set_notify_resumeset_notify_resume - cause tracehook_notify_resume() to be called*@task: task that will call tracehook_notify_resume()* Calling this arranges that @task will call tracehook_notify_resume()* before returning to user mode