函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\memcontrol.c Create Date:2022-07-27 17:44:37
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:mem_cgroup_oom

函数原型:static enum oom_status mem_cgroup_oom(struct mem_cgroup *memcg, gfp_t mask, int order)

返回类型:enum oom_status

参数:

类型参数名称
struct mem_cgroup *memcg
gfp_tmask
intorder
1768  如果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.则返回:OOM_SKIPPED
1771  memcg_memory_event(memcg, MEMCG_OOM)
1791  如果 OOM-Killer disable
1792  如果非in_user_fault则返回:OOM_SKIPPED
1794  获取指定CSS参考
1795  memcg_in_oom等于memcg
1796  memcg_oom_gfp_mask等于mask
1797  memcg_oom_order等于order
1799  返回: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  如果lockedmem_cgroup_oom_notify(memcg)
1809  mem_cgroup_unmark_under_oom(memcg)
1810  如果mem_cgroup_out_of_memory(memcg, mask, order)则ret等于OOM_SUCCESS
1812  否则ret等于OOM_FAILED
1815  如果lockedmem_cgroup_oom_unlock(memcg)
1818  返回:ret
调用者
名称描述
try_charge