函数逻辑报告

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 bool task_css_is_root(struct task_struct *task, int subsys_id)

返回类型:bool

参数:

类型参数名称
struct task_struct *task
intsubsys_id
535  返回: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, true)恒等于Set of subsystem states, one for each subsystem. This array is* immutable after creation apart from the init_css_set during* subsystem registration (at boot time).[subsys_id]
调用者
名称描述
freezer_forkzer_fork - cgroup post fork callback*@task: a task which has just been forked*@task has just been created and should conform to the current state of* the cgroup_freezer it belongs to. This function may race against* freezer_attach()
cpuset_forkMake sure the new task conform to the current state of its parent,* which could have been changed by cpuset just after it inherits the* state from the parent and before it sits on the cgroup's task list.