Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:group_e_css_by_mask - obtain a cgroup's effective css for the specified ss*@cgrp: the cgroup of interest*@ss: the subsystem of interest (%NULL returns @cgrp->self)* Similar to cgroup_css() but returns the effective css, which is defined* as the matching

Proto:static struct cgroup_subsys_state *cgroup_e_css_by_mask(struct cgroup *cgrp, struct cgroup_subsys *ss)

Type:struct cgroup_subsys_state

Parameter:

TypeParameterName
struct cgroup *cgrp
struct cgroup_subsys *ss
511  lockdep_assert_held( & cgroup_mutex is the master lock)
513  If Not ss Then Return self css with NULL ->ss, points back to this cgroup
520  When Not (subsystems enabled on a cgroup & 1 << the following two fields are initialized automtically during boot ) cycle
521  cgrp = cgroup_parent(cgrp)
522  If Not cgrp Then Return NULL
526  Return 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
find_existing_css_setd_existing_css_set - init css array and find the matching css_set*@old_cset: the css_set that we're using before the cgroup transition*@cgrp: the cgroup that we're moving into*@template: out param for the new set of csses, should be clear on entry