Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:static struct css_set *find_existing_css_set(struct css_set *old_cset, struct cgroup *cgrp, struct cgroup_subsys_state *template[])

Type:struct css_set

Parameter:

TypeParameterName
struct css_set *old_cset
struct cgroup *cgrp
struct cgroup_subsys_state *template
1063  root = root
1075  If The bitmask of subsystems attached to this hierarchy & 1UL << i Then
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  Else
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  If Not mpare_css_sets - helper function for find_existing_css_set() Then Continue
1096  Return cset
1100  Return NULL
Caller
NameDescribe
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.