Function report |
Source Code:mm\memcontrol.c |
Create Date:2022-07-28 16:10:14 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:mem_cgroup_oom_synchronize - complete memcg OOM handling*@handle: actually kill/wait or just clean up the OOM state* This has to be called at the end of a page fault if the memcg OOM* handler was enabled
Proto:bool mem_cgroup_oom_synchronize(bool handle)
Type:bool
Parameter:
Type | Parameter | Name |
---|---|---|
bool | handle |
1840 | memcg = memcg_in_oom |
1845 | If Not memcg Then Return false |
1852 | flags = 0 |
1853 | func = memcg_oom_wake_function |
1854 | private = current process |
1860 | locked = Check OOM-Killer is already running under our hierarchy.* If someone is running, return false. |
1862 | If locked Then mem_cgroup_oom_notify(memcg) |
1865 | If locked && Not OOM-Killer disable Then |
1870 | Else |
1871 | schedule() |
1876 | If locked Then |
1877 | mem_cgroup_oom_unlock(memcg) |
1883 | memcg_oom_recover(memcg) |
1885 | cleanup : |
1886 | memcg_in_oom = NULL |
1888 | Return true |
Name | Describe |
---|---|
handle_mm_fault | By the time we get here, we already hold the mm semaphore* The mmap_sem may have been released depending on flags and our* return value. See filemap_fault() and __lock_page_or_retry(). |
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 |