Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\memcontrol.c Create Date:2022-07-28 16:10:11
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:mem_cgroup_oom

Proto:static enum oom_status mem_cgroup_oom(struct mem_cgroup *memcg, gfp_t mask, int order)

Type:enum oom_status

Parameter:

TypeParameterName
struct mem_cgroup *memcg
gfp_tmask
intorder
1768  If order > PAGE_ALLOC_COSTLY_ORDER is the order at which allocations are deemed* costly to service. That is between allocation orders which should* coalesce naturally under reasonable reclaim pressure and those which* will not. Then Return OOM_SKIPPED
1771  memcg_memory_event(memcg, MEMCG_OOM)
1791  If OOM-Killer disable Then
1792  If Not in_user_fault Then Return OOM_SKIPPED
1794  ss_get - obtain a reference on the specified css*@css: target css* The caller must already have a reference.
1795  memcg_in_oom = memcg
1796  memcg_oom_gfp_mask = mask
1797  memcg_oom_order = order
1799  Return OOM_ASYNC
1802  mem_cgroup_mark_under_oom(memcg)
1804  locked = Check OOM-Killer is already running under our hierarchy.* If someone is running, return false.
1806  If locked Then mem_cgroup_oom_notify(memcg)
1809  mem_cgroup_unmark_under_oom(memcg)
1810  If mem_cgroup_out_of_memory(memcg, mask, order) Then ret = OOM_SUCCESS
1812  Else ret = OOM_FAILED
1815  If locked Then mem_cgroup_oom_unlock(memcg)
1818  Return ret
Caller
NameDescribe
try_charge