Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\oom_kill.c Create Date:2022-07-28 14:06:30
Last Modify:2022-05-23 13:16:41 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Kill provided task unless it's secured by setting* oom_score_adj to OOM_SCORE_ADJ_MIN.

Proto:static int oom_kill_memcg_member(struct task_struct *task, void *message)

Type:int

Parameter:

TypeParameterName
struct task_struct *task
void *message
943  If oom_score_adj != /proc//oom_score_adj set to OOM_SCORE_ADJ_MIN disables oom killing for* pid. && Not s_global_init - check if a task structure is init. Since init* is free to have sub-threads we need to check tgid.*@tsk: Task structure to be checked.* Check if a task structure is the first user space task the kernel created. Then
945  get_task_struct(task)
946  __oom_kill_process(task, message)
948  Return 0