函数逻辑报告

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

函数名称:group_task_count - count the number of tasks in a cgroup.*@cgrp: the cgroup in question

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

返回类型:int

参数:

类型参数名称
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  返回:count
调用者
名称描述
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