Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:mem_cgroup_from_task

Proto:struct mem_cgroup *mem_cgroup_from_task(struct task_struct *p)

Type:struct mem_cgroup

Parameter:

TypeParameterName
struct task_struct *p
908  If Value for the false possibility is greater at compile time(!p) Then Return NULL
911  Return mem_cgroup_from_css(ask_css - obtain css for (task, subsys)*@task: the target task*@subsys_id: the target subsystem ID* See task_css_check().)
Caller
NameDescribe
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