函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:struct cgroup_subsys_state *css_next_descendant_pre(struct cgroup_subsys_state *pos, struct cgroup_subsys_state *root)

返回类型:struct cgroup_subsys_state

参数:

类型参数名称
struct cgroup_subsys_state *pos
struct cgroup_subsys_state *root
4200  如果非pos则返回:root
4204  next等于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
4205  如果next则返回:next
4209 pos不等于root循环
4210  next等于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
4211  如果next则返回:next
4213  pos等于PI: the parent css. Placed here for cache proximity to following* fields of the containing structure.
4216  返回:NULL
调用者
名称描述
cgroup_enable_threadedgroup_enable_threaded - make @cgrp threaded*@cgrp: the target cgroup* Called when "threaded" is written to the cgroup.type interface file and* tries to make @cgrp threaded and join the parent's resource domain.
mem_cgroup_itermem_cgroup_iter - iterate over memory cgroup hierarchy*@root: hierarchy root*@prev: previously returned memcg, NULL on first invocation*@reclaim: cookie for shared reclaim walks, NULL for full walks* Returns references to children of the hierarchy below