Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:mem_cgroup_mark_under_oom

Proto:static void mem_cgroup_mark_under_oom(struct mem_cgroup *memcg)

Type:void

Parameter:

TypeParameterName
struct mem_cgroup *memcg
1698  spin_lock( & memcg_oom_lock)
1699  Iteration constructs for visiting all cgroups (under a tree). If* loops are exited prematurely (break), mem_cgroup_iter_break() must* be used for reference counting.(iter, memcg)
1700  under_oom++
1701  spin_unlock( & memcg_oom_lock)
Caller
NameDescribe
mem_cgroup_oom
mem_cgroup_oom_synchronizemem_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