函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:循环获得css

函数原型:static inline struct cgroup_subsys_state *task_css(struct task_struct *task, int subsys_id)

返回类型:struct cgroup_subsys_state

参数:

类型参数名称
struct task_struct *task
intsubsys_id
491  返回:ask_css_check - obtain css for (task, subsys) w/ extra access conds*@task: the target task*@subsys_id: the target subsystem ID*@__c: extra condition expression to be passed to rcu_dereference_check()(task, subsys_id, false)
调用者
名称描述
task_caReturn CPU accounting group to which this task belongs
task_freezer
pids_can_attach
pids_cancel_attach
pids_release
task_csRetrieve the cpuset for a task
mem_cgroup_from_task
hugetlb_cgroup_from_task
blkcg_maybe_throttle_currentlkcg_maybe_throttle_current - throttle the current task if it has been marked* This is only called if we've been marked with set_notify_resume()
task_devcgroup
task_get_cssask_get_css - find and get the css for (task, subsys)*@task: the target task*@subsys_id: the target subsystem ID* Find the css for the (@task, @subsys_id) combination, increment a* reference on and return it. This function is guaranteed to return a
task_cgroup
blkcg_csslkcg_css - find the current css* Find the css associated with either the kthread or the current task.* This may return a dying css, so it is up to the caller to use tryget logic* to confirm it is alive and well.
blk_cgroup_congested
task_netprioidx