Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:mem_cgroup_oom_control_write

Proto:static int mem_cgroup_oom_control_write(struct cgroup_subsys_state *css, struct cftype *cft, u64 val)

Type:int

Parameter:

TypeParameterName
struct cgroup_subsys_state *css
struct cftype *cft
u64val
4168  memcg = mem_cgroup_from_css(css)
4171  If Not PI: the parent css. Placed here for cache proximity to following* fields of the containing structure. || Not ( val == 0 || val == 1 ) Then Return -EINVAL
4174  OOM-Killer disable = val
4175  If Not val Then memcg_oom_recover(memcg)
4178  Return 0