函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:voke ->css_online() on a new CSS and mark it online if successful

函数原型:static int online_css(struct cgroup_subsys_state *css)

返回类型:int

参数:

类型参数名称
struct cgroup_subsys_state *css
5042  ss等于PI: the cgroup subsystem that this css is attached to
5043  ret等于0
5045  lockdep_assert_held( & cgroup_mutex is the master lock)
5047  如果css_onlineret等于css_online(css)
5049  如果非ret
5050  flags或等于CSS_ONLINE
5051  cu_assign_pointer() - assign to RCU-protected pointer*@p: pointer to assign to*@v: value to assign (publish)* Assigns the specified value to the specified RCU-protected* pointer, ensuring that any concurrent RCU readers will see* any prior initialization( Private pointers for each registered subsystem [ the following two fields are initialized automtically during boot ], css)
5053  atomic_inc( & Incremented by online self and children. Used to guarantee that* parents are not offlined before their children.)
5054  如果PI: the parent css. Placed here for cache proximity to following* fields of the containing structure.atomic_inc( & Incremented by online self and children. Used to guarantee that* parents are not offlined before their children.)
5057  返回:ret
调用者
名称描述
css_create
cgroup_init_subsys