Function report |
Source Code:mm\oom_kill.c |
Create Date:2022-07-28 14:06:14 |
Last Modify:2022-05-23 13:16:41 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Reaps the address space of the give task.* Returns true on success and false if none or part of the address space* has been reclaimed and the caller should retry later.
Proto:static bool oom_reap_task_mm(struct task_struct *tsk, struct mm_struct *mm)
Type:bool
Parameter:
Type | Parameter | Name |
---|---|---|
struct task_struct * | tsk | |
struct mm_struct * | mm |
569 | bool ret = true |
571 | If Not rylock for reading -- returns 1 if successful, 0 if contention Then |
573 | Return false |
584 | Go to out_unlock |
590 | ret = __oom_reap_task_mm(mm) |
591 | If Not ret Then Go to out_finish |
594 | pr_info("oom_reaper: reaped process %d (%s), now anon-rss:%lukB, file-rss:%lukB, shmem-rss:%lukB\n", task_pid_nr(tsk), comm, K(per-process(per-mm_struct) statistics.), K(per-process(per-mm_struct) statistics.), K(per-process(per-mm_struct) statistics.)) |
599 | out_finish : |
601 | out_unlock : |
604 | Return ret |
Name | Describe |
---|---|
oom_reap_task |
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 |