Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: the CSS is online, invoke ->css_offline() on it and mark it offline

Proto:static void offline_css(struct cgroup_subsys_state *css)

Type:void

Parameter:

TypeParameterName
struct cgroup_subsys_state *css
5063  ss = PI: the cgroup subsystem that this css is attached to
5065  lockdep_assert_held( & cgroup_mutex is the master lock)
5067  If Not (flags & CSS_ONLINE) Then Return
5070  If css_offline Then css_offline(css)
5073  flags &= ~CSS_ONLINE
5074  RCU_INIT_POINTER() - initialize an RCU protected pointer*@p: The pointer to be initialized.*@v: The value to initialized the pointer to.* Initialize an RCU-protected pointer in special cases where readers( Private pointers for each registered subsystem [ the following two fields are initialized automtically during boot ], NULL)
5076  wake_up_all( & used to wait for offlining of csses )
Caller
NameDescribe
css_killed_work_fnThis is called when the refcnt of a css is confirmed to be killed.* css_tryget_online() is now guaranteed to fail. Tell the subsystem to* initate destruction and put the css ref from kill_css().