函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:struct cgroup_subsys_state *css_next_child(struct cgroup_subsys_state *pos, struct cgroup_subsys_state *parent)

返回类型:struct cgroup_subsys_state

参数:

类型参数名称
struct cgroup_subsys_state *pos
struct cgroup_subsys_state *parent
4151  如果非pos
4152  next等于list_entry_rcu - get the struct for this entry*@ptr: the &struct list_head pointer(链表后项, structcgroup_subsys_state, sibling)
4153  否则如果此条件成立可能性大(为编译器优化)(!(flags & CSS_RELEASED))则
4154  next等于list_entry_rcu - get the struct for this entry*@ptr: the &struct list_head pointer(链表后项, structcgroup_subsys_state, sibling)
4155  否则
4156  遍历RCU(next, & children, sibling)
4157  如果Monotonically increasing unique serial number which defines a* uniform order among all csses. It's guaranteed that all* ->children lists are in the ascending order of ->serial_nr and* used to allow interrupting and resuming iterations.大于Monotonically increasing unique serial number which defines a* uniform order among all csses. It's guaranteed that all* ->children lists are in the ascending order of ->serial_nr and* used to allow interrupting and resuming iterations.退出
4165  如果siblings list anchored at the parent's ->children 不等于children则返回:next
4167  返回:NULL
调用者
名称描述
rebind_subsystems
css_next_descendant_press_next_descendant_pre - find the next descendant for pre-order walk*@pos: the current position (%NULL to initiate traversal)*@root: css whose descendants to walk* To be used by css_for_each_descendant_pre(). Find the next descendant
css_leftmost_descendant
css_next_descendant_postss_next_descendant_post - find the next descendant for post-order walk*@pos: the current position (%NULL to initiate traversal)*@root: css whose descendants to walk* To be used by css_for_each_descendant_post(). Find the next descendant
memcg_has_childrenTest 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