Function report |
Source Code:mm\oom_kill.c |
Create Date:2022-07-28 14:05:58 |
| Last Modify:2022-05-23 13:16:41 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:oom_evaluate_task
Proto:static int oom_evaluate_task(struct task_struct *task, void *arg)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct task_struct * | task | |
| void * | arg |
| 314 | If rn true if the task is not adequate as candidate victim task. Then Go to next |
| 328 | If st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from Then Go to next |
| 330 | Go to abort |
| 337 | If oom_task_origin(task) Then |
| 343 | If Not points || points < chosen_points Then Go to next |
| 346 | select : |
| 347 | If chosen Then put_task_struct(chosen) |
| 349 | get_task_struct(task) |
| 351 | chosen_points = points |
| 352 | next : |
| 353 | Return 0 |
| 354 | abort : |
| 355 | If chosen Then put_task_struct(chosen) |
| 357 | chosen = (void * ) - 1UL |
| 358 | Return 1 |
| Name | Describe |
|---|---|
| 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. |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |