函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:mem_cgroup_hierarchy_write

函数原型:static int mem_cgroup_hierarchy_write(struct cgroup_subsys_state *css, struct cftype *cft, u64 val)

返回类型:int

参数:

类型参数名称
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  如果* Should the accounting and control be hierarchical, per subtree?恒等于val则返回:0
3211  如果非parent_memcg或非* Should the accounting and control be hierarchical, per subtree?的值且val恒等于1或val恒等于0的值则
3213  如果非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* Should the accounting and control be hierarchical, per subtree?等于val
3215  否则retval等于负EBUSY
3217  否则retval等于负EINVAL
3220  返回:retval