函数逻辑报告

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_set

函数原型:static inline struct css_set *task_css_set(struct task_struct *task)

返回类型:struct css_set

参数:

类型参数名称
struct task_struct *task
478  返回:task_css_set_check(task, false)
调用者
名称描述
task_cgroup_from_rootReturn the cgroup for "task" from the given hierarchy. Must be* called with cgroup_mutex and css_set_lock held.
cgroup_migrate_add_taskgroup_migrate_add_task - add a migration target task to a migration context*@task: target task*@mgctx: target migration context* Add @task, which is a migration target, to @mgctx->tset. This function* becomes noop if @task doesn't need to be migrated
cgroup_migrate_executegroup_taskset_migrate - migrate a taskset*@mgctx: migration context* Migrate tasks in @mgctx as setup by migration preparation functions.* This function fails iff one of the ->can_attach callbacks fails and
cgroup_attach_taskgroup_attach_task - attach a task or a whole threadgroup to a cgroup*@dst_cgrp: the cgroup to attach to*@leader: the task or the leader of the threadgroup to be attached*@threadgroup: attach the whole threadgroup?
cgroup_post_forkgroup_post_fork - called on a new task after adding it to the task list*@child: the task in question* Adds the task to the list running through its css_set if necessary and* call the subsystem fork() callbacks
cgroup_exitgroup_exit - detach cgroup from exiting task*@tsk: pointer to task_struct of exiting process* Description: Detach cgroup from @tsk.
cgroup_release
cgroup_free
copy_cgroup_ns
current_css_set_read
current_css_set_refcount_read
current_css_set_cg_links_read
task_dfl_cgroup
task_under_cgroup_hierarchyask_under_cgroup_hierarchy - test task's membership of cgroup ancestry*@task: the task to be tested*@ancestor: possible ancestor of @task's cgroup* Tests whether @task's default cgroup hierarchy is a descendant of @ancestor