函数逻辑报告

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

函数名称:task_cgroup

函数原型:static inline struct cgroup *task_cgroup(struct task_struct *task, int subsys_id)

返回类型:struct cgroup

参数:

类型参数名称
struct task_struct *task
intsubsys_id
542  返回:PI: the cgroup that this css is attached to
调用者
名称描述
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