Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:init_and_link_css

Proto:static void init_and_link_css(struct cgroup_subsys_state *css, struct cgroup_subsys *ss, struct cgroup *cgrp)

Type:void

Parameter:

TypeParameterName
struct cgroup_subsys_state *css
struct cgroup_subsys *ss
struct cgroup *cgrp
5014  lockdep_assert_held( & cgroup_mutex is the master lock)
5016  cgroup_get_live(cgrp)
5018  memset(css, 0, size of css )
5019  PI: the cgroup that this css is attached to = cgrp
5020  PI: the cgroup subsystem that this css is attached to = ss
5021  PI: Subsys-unique ID. 0 is unused and root is always 1. The* matching css can be looked up using css_from_id(). = -1
5022  Initialization list head
5023  Initialization list head
5024  Initialization list head
5025  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. = Assign a monotonically increasing serial number to csses++
5026  atomic_set( & Incremented by online self and children. Used to guarantee that* parents are not offlined before their children., 0)
5028  If cgroup_parent(cgrp) Then
5029  PI: the parent css. Placed here for cache proximity to following* fields of the containing structure. = group_css - obtain a cgroup's css for the specified subsystem*@cgrp: the cgroup of interest*@ss: the subsystem of interest (%NULL returns @cgrp->self)* Return @cgrp's css (cgroup_subsys_state) associated with @ss
5030  ss_get - obtain a reference on the specified css*@css: target css* The caller must already have a reference.
5033  If group_on_dfl - test whether a cgroup is on the default hierarchy*@cgrp: the cgroup of interest* The default hierarchy is the v2 interface of cgroup and this function* can be used to test whether a cgroup is on the default hierarchy for* cases where a && css_rstat_flush Then list_add_rcu - add a new entry to rcu-protected list*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head
5036  BUG_ON(group_css - obtain a cgroup's css for the specified subsystem*@cgrp: the cgroup of interest*@ss: the subsystem of interest (%NULL returns @cgrp->self)* Return @cgrp's css (cgroup_subsys_state) associated with @ss)
Caller
NameDescribe
css_create
cgroup_init_subsys