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:group_task_count - count the number of tasks in a cgroup.*@cgrp: the cgroup in question

Proto:int cgroup_task_count(const struct cgroup *cgrp)

Type:int

Parameter:

TypeParameterName
const struct cgroup *cgrp
623  spin_lock_irq( & css_set_lock)
624  count = __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
625  spin_unlock_irq( & css_set_lock)
627  Return count
Caller
NameDescribe
pidlist_array_loadLoad a cgroup's pidarray with either procs' tgids or tasks' pids
debug_taskcount_readdebug_taskcount_read - return the number of tasks in a cgroup.*@cgrp: the cgroup in question