函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Return CPU accounting group to which this task belongs

函数原型:static inline struct cpuacct *task_ca(struct task_struct *tsk)

返回类型:struct cpuacct

参数:

类型参数名称
struct task_struct *tsk
43  返回:css_ca(循环获得css)
调用者
名称描述
cpuacct_chargeharge this task's execution time to its accounting group.* called with rq->lock held.
cpuacct_account_fieldAdd user/system time to cpuacct.* Note: it's the caller that updates the account of the root cgroup.