函数逻辑报告 |
Source Code:mm\oom_kill.c |
Create Date:2022-07-27 15:29:09 |
Last Modify:2022-05-23 13:16:41 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Simple selection loop. We choose the process with the highest number of* 'points'. In case scan was aborted, oc->chosen is set to -1.
函数原型:static void select_bad_process(struct oom_control *oc)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct oom_control * | oc |
367 | 如果is_memcg_oom(oc)则mem_cgroup_scan_tasks(Memory cgroup in which oom is invoked, or NULL for global oom , oom_evaluate_task, oc) |
369 | 否则 |
373 | for_each_process(p) |
374 | 如果oom_evaluate_task(p, oc)则退出 |
名称 | 描述 |
---|---|
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) |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |