Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\cgroup\cgroup.c Create Date:2022-07-28 11:10:41
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:voke ->css_online() on a new CSS and mark it online if successful

Proto:static int online_css(struct cgroup_subsys_state *css)

Type:int

Parameter:

TypeParameterName
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  If css_online Then ret = css_online(css)
5049  If Not ret Then
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  If PI: the parent css. Placed here for cache proximity to following* fields of the containing structure. Then atomic_inc( & Incremented by online self and children. Used to guarantee that* parents are not offlined before their children.)
5057  Return ret
Caller
NameDescribe
css_create
cgroup_init_subsys