Function report |
Source Code:mm\oom_kill.c |
Create Date:2022-07-28 14:06:24 |
Last Modify:2022-05-23 13:16:41 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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
Proto:static bool task_will_free_mem(struct task_struct *task)
Type:bool
Parameter:
Type | Parameter | Name |
---|---|---|
struct task_struct * | task |
813 | bool ret = true |
820 | If Not mm Then Return false |
823 | If Not __task_will_free_mem(task) Then Return false |
830 | If st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from Then Return false |
845 | If same_thread_group(task, p) Then Continue |
847 | ret = __task_will_free_mem(p) |
848 | If Not ret Then Break |
853 | Return ret |
Name | Describe |
---|---|
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) |
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 |