函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__cgroup_task_count - count the number of tasks in a cgroup. The caller* is responsible for taking the css_set_lock.*@cgrp: the cgroup in question

函数原型:int __cgroup_task_count(const struct cgroup *cgrp)

返回类型:int

参数:

类型参数名称
const struct cgroup *cgrp
604  count等于0
607  lockdep_assert_held( & css_set_lock)
609  list_for_each_entry - iterate over list of given type*@pos: the type * to use as a loop cursor.*@head: the head for your list.*@member: the name of the list_head within the struct.(link, & * List of cgrp_cset_links pointing at css_sets with tasks in this * cgroup. Protected by css_set_lock., cset_link)
610  count加等于rnal task count, protected by css_set_lock
612  返回:count
调用者
名称描述
cgroup_task_countgroup_task_count - count the number of tasks in a cgroup.*@cgrp: the cgroup in question
cgroup_update_frozenRevisit the cgroup frozen state.* Checks if the cgroup is really frozen and perform all state transitions.