函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\oom_kill.c Create Date:2022-07-27 15:28:57
Last Modify:2022-05-23 13:16:41 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:rn true if the task is not adequate as candidate victim task.

函数原型:static bool oom_unkillable_task(struct task_struct *p)

返回类型:bool

参数:

类型参数名称
struct task_struct *p
163  如果检查进程已初始化则返回:true
165  如果flags按位与I am a kernel thread 则返回:true
167  返回:false
调用者
名称描述
oom_badnessm_badness - heuristic function to determine which candidate task to kill*@p: task struct of which task we should calculate*@totalpages: total present RAM allowed for page allocation* The heuristic for determining which task to kill is made to be as simple
oom_evaluate_task
dump_task
out_of_memory_of_memory - kill the "best" process when we run out of memory*@oc: pointer to struct oom_control* If we run out of memory, we have the choice between either* killing a random task (bad), letting the system crash (worse)