函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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

函数原型:static inline bool memcg_has_children(struct mem_cgroup *memcg)

返回类型:bool

参数:

类型参数名称
struct mem_cgroup *memcg
3136  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
3137  ret等于ss_next_child - find the next child of a given css*@pos: the current position (%NULL to initiate traversal)*@parent: css whose children to walk* This function returns the next child of @parent and should be called
3138  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
3139  返回:ret
调用者
名称描述
mem_cgroup_hierarchy_write