函数逻辑报告 |
Source Code:mm\oom_kill.c |
Create Date:2022-07-27 15:28:55 |
Last Modify:2022-05-23 13:16:41 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:m_cpuset_eligible() - check task eligiblity for kill*@start: task struct of which task to consider*@oc: pointer to struct oom_control* Task eligibility is determined by whether or not a candidate task, @tsk,* shares the same mempolicy nodes as current if
函数原型:static bool oom_cpuset_eligible(struct task_struct *start, struct oom_control *oc)
返回类型:bool
参数:
类型 | 参数 | 名称 |
---|---|---|
struct task_struct * | start | |
struct oom_control * | oc |
89 | bool ret = false |
92 | 如果is_memcg_oom(oc)则返回:true |
96 | for_each_thread(start, tsk) |
97 | 如果mask则 |
104 | ret等于mempolicy_nodemask_intersects(tsk, mask) |
105 | 否则 |
110 | ret等于cpuset_mems_allowed_intersects(当前进程, tsk) |
117 | 返回:ret |
名称 | 描述 |
---|---|
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) |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |