Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\cgroup.h Create Date:2022-07-28 05:55:00
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ask_css_is_root - test whether a task belongs to the root css*@task: the target task*@subsys_id: the target subsystem ID* Test whether @task belongs to the root css on the specified subsystem.* May be invoked in any context.

Proto:static inline bool task_css_is_root(struct task_struct *task, int subsys_id)

Type:bool

Parameter:

TypeParameterName
struct task_struct *task
intsubsys_id
535  Return 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]
Caller
NameDescribe
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.