函数逻辑报告 |
Source Code:mm\oom_kill.c |
Create Date:2022-07-27 15:29:35 |
Last Modify:2022-05-23 13:16:41 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Checks whether the given task is dying or exiting and likely to* release its address space. This means that all threads and processes* sharing the same mm have to be killed or exiting.* Caller has to make sure that task->mm is stable (hold task_lock or
函数原型:static bool task_will_free_mem(struct task_struct *task)
返回类型:bool
参数:
类型 | 参数 | 名称 |
---|---|---|
struct task_struct * | task |
813 | bool ret = true |
820 | 如果非mm则返回:false |
823 | 如果非__task_will_free_mem(task)则返回:false |
830 | 如果st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from则返回:false |
845 | 如果same_thread_group(task, p)则继续下一循环 |
847 | ret等于__task_will_free_mem(p) |
853 | 返回:ret |
名称 | 描述 |
---|---|
oom_kill_process | |
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 插件可实现:逻辑报告 代码生成和批量转换代码 |