Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:test_and_set_tsk_thread_flag

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

Type:int

Parameter:

TypeParameterName
struct task_struct *tsk
intflag
1747  Return test_and_set_ti_thread_flag(task_thread_info(tsk), flag)
Caller
NameDescribe
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).