Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:int __cgroup_task_count(const struct cgroup *cgrp)

Type:int

Parameter:

TypeParameterName
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  Return count
Caller
NameDescribe
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.