函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:static void link_css_set(struct list_head *tmp_links, struct css_set *cset, struct cgroup *cgrp)

返回类型:void

参数:

类型参数名称
struct list_head *tmp_links
struct css_set *cset
struct cgroup *cgrp
1150  BUG_ON(链表为空)
1152  如果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 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  链表项移动到尾部
1164  添加链表项
1166  如果cgroup_parent(cgrp)则cgroup_get_live(cgrp)
调用者
名称描述
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