函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:static struct css_set *find_existing_css_set(struct css_set *old_cset, struct cgroup *cgrp, struct cgroup_subsys_state *template[])

返回类型:struct css_set

参数:

类型参数名称
struct css_set *old_cset
struct cgroup *cgrp
struct cgroup_subsys_state *template
1063  root等于root
1075  如果 The bitmask of subsystems attached to this hierarchy 按位与1UL左移i位则
1080  template[i]等于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
1081  否则
1086  template[i]等于Set of subsystem states, one for each subsystem. This array is* immutable after creation apart from the init_css_set during* subsystem registration (at boot time).[i]
1090  key等于css_set_hash(template)
1091  hash_for_each_possible - iterate over all possible objects hashing to the* same bucket*@name: hashtable to iterate*@obj: the type * to use as a loop cursor for each entry*@member: the name of the hlist_node within the struct*@key: the key of the objects (css_set_table, cset, hlist, key)
1092  如果非mpare_css_sets - helper function for find_existing_css_set()则继续下一循环
1096  返回:cset
1100  返回:NULL
调用者
名称描述
find_css_setd_css_set - return a new css_set with one cgroup updated*@old_cset: the baseline css_set*@cgrp: the cgroup to be updated* Return a new css_set that's equivalent to @old_cset, but with @cgrp* substituted into the appropriate hierarchy.