函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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

函数原型:static struct cgroup_subsys_state *cgroup_e_css_by_mask(struct cgroup *cgrp, struct cgroup_subsys *ss)

返回类型:struct cgroup_subsys_state

参数:

类型参数名称
struct cgroup *cgrp
struct cgroup_subsys *ss
511  lockdep_assert_held( & cgroup_mutex is the master lock)
513  如果非ss则返回: self css with NULL ->ss, points back to this cgroup
520  当非subsystems enabled on a cgroup 按位与1左移 the following two fields are initialized automtically during boot 位的值循环
521  cgrp等于cgroup_parent(cgrp)
522  如果非cgrp则返回:NULL
526  返回: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
调用者
名称描述
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