函数逻辑报告 |
Source Code:mm\oom_kill.c |
Create Date:2022-07-27 15:29:08 |
Last Modify:2022-05-23 13:16:41 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:oom_evaluate_task
函数原型:static int oom_evaluate_task(struct task_struct *task, void *arg)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct task_struct * | task | |
void * | arg |
328 | 如果st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from则转到:next |
330 | 转到:abort |
337 | 如果oom_task_origin(task)则 |
343 | 如果非points或points小于chosen_points则转到:next |
346 | select : |
347 | 如果chosen则put_task_struct(chosen) |
349 | get_task_struct(task) |
351 | chosen_points等于points |
352 | next : |
353 | 返回:0 |
354 | abort : |
355 | 如果chosen则put_task_struct(chosen) |
357 | chosen = (void * ) - 1UL |
358 | 返回:1 |
名称 | 描述 |
---|---|
select_bad_process | Simple selection loop. We choose the process with the highest number of* 'points'. In case scan was aborted, oc->chosen is set to -1. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |