Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:mem_cgroup_hierarchy_write

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

Type:int

Parameter:

TypeParameterName
struct cgroup_subsys_state *css
struct cftype *cft
u64val
3196  retval = 0
3197  memcg = mem_cgroup_from_css(css)
3198  parent_memcg = mem_cgroup_from_css(PI: the parent css. Placed here for cache proximity to following* fields of the containing structure.)
3200  If * Should the accounting and control be hierarchical, per subtree? == val Then Return 0
3211  If ( Not parent_memcg || Not * Should the accounting and control be hierarchical, per subtree? ) && ( val == 1 || val == 0 ) Then
3213  If Not Test whether @memcg has children, dead or alive. Note that this* function doesn't care whether @memcg has use_hierarchy enabled and* returns %true if there are child csses according to the cgroup* hierarchy Then * Should the accounting and control be hierarchical, per subtree? = val
3215  Else retval = -EBUSY
3217  Else retval = -EINVAL
3220  Return retval