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:task_cgroup

Proto:static inline struct cgroup *task_cgroup(struct task_struct *task, int subsys_id)

Type:struct cgroup

Parameter:

TypeParameterName
struct task_struct *task
intsubsys_id
542  Return PI: the cgroup that this css is attached to
Caller
NameDescribe
mem_cgroup_print_oom_contextmem_cgroup_print_oom_context: Print OOM information relevant to* memory controller.*@memcg: The memory cgroup that went over limit*@p: Task that is going to be killed* NOTE: @memcg and @p's mem_cgroup can be different when hierarchy is* enabled