函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\memcontrol.c Create Date:2022-07-27 17:43:43
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:mem_cgroup_from_task

函数原型:struct mem_cgroup *mem_cgroup_from_task(struct task_struct *p)

返回类型:struct mem_cgroup

参数:

类型参数名称
struct task_struct *p
908  如果此条件成立可能性小(为编译器优化)(!p)则返回:NULL
911  返回:mem_cgroup_from_css(循环获得css)
调用者
名称描述
get_mem_cgroup_from_mmget_mem_cgroup_from_mm: Obtain a reference on given mm_struct's memcg.*@mm: mm from which memcg should be extracted. It can be NULL.* Obtain a reference on mm->memcg and returns it if successful. Otherwise* root_mem_cgroup is returned
mem_cgroup_get_oom_groupmem_cgroup_get_oom_group - get a memory cgroup to clean up after OOM*@victim: task to be killed by the OOM killer*@oom_domain: memcg in case of memcg OOM, NULL in case of system-wide OOM* Returns a pointer to a memory cgroup, which has to be cleaned up
mem_cgroup_can_attach
mem_cgroup_sk_alloc
mm_match_cgroup
count_memcg_event_mm
memcg_memory_event_mm