Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\cgroup\cgroup.c Create Date:2022-07-28 11:08:01
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Return the cgroup for "task" from the given hierarchy. Must be* called with cgroup_mutex and css_set_lock held.

Proto:struct cgroup *task_cgroup_from_root(struct task_struct *task, struct cgroup_root *root)

Type:struct cgroup

Parameter:

TypeParameterName
struct task_struct *task
struct cgroup_root *root
1434  Return look up cgroup associated with given css_set on the specified hierarchy
Caller
NameDescribe
task_cgroup_pathask_cgroup_path - cgroup path of a task in the first cgroup hierarchy*@task: target task*@buf: the buffer to write the path into*@buflen: the length of the buffer* Determine @task's cgroup on the first (the one with the lowest non-zero
cgroup_procs_write
cgroup_threads_write
proc_cgroup_showproc_cgroup_show()* - Print task's cgroup paths into seq_file, one line for each hierarchy* - Used for /proc//cgroup.
cgroup_attach_task_allgroup_attach_task_all - attach task 'tsk' to all cgroups of task 'from'*@from: attach to all cgroups of a given task*@tsk: the task to be attached