Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:link_css_set - a helper function to link a css_set to a cgroup*@tmp_links: cgrp_cset_link objects allocated by allocate_cgrp_cset_links()*@cset: the css_set to be linked*@cgrp: the destination cgroup

Proto:static void link_css_set(struct list_head *tmp_links, struct css_set *cset, struct cgroup *cgrp)

Type:void

Parameter:

TypeParameterName
struct list_head *tmp_links
struct css_set *cset
struct cgroup *cgrp
1150  BUG_ON(list_empty - tests whether a list is empty*@head: the list to test.)
1152  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 Then he default cgroup associated with this css_set = cgrp
1155  link = list_first_entry - get the first element from a list*@ptr: the list head to take the element from.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.* Note, that list is expected to be not empty.(tmp_links, structcgrp_cset_link, cset_link)
1156  cset = cset
1157  he cgroup and css_set this link associates = cgrp
1163  list_move_tail - delete from one list and add as another's tail*@list: the entry to move*@head: the head that will follow our entry
1164  list_add_tail - add a new entry*@new: new entry to be added*@head: list head to add it before* Insert a new entry before the specified head.* This is useful for implementing queues.
1166  If cgroup_parent(cgrp) Then cgroup_get_live(cgrp)
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.
cgroup_setup_root