Function report |
Source Code:mm\memcontrol.c |
Create Date:2022-07-28 16:10:16 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:mem_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
Proto:struct mem_cgroup *mem_cgroup_get_oom_group(struct task_struct *victim, struct mem_cgroup *oom_domain)
Type:struct mem_cgroup
Parameter:
Type | Parameter | Name |
---|---|---|
struct task_struct * | victim | |
struct mem_cgroup * | oom_domain |
1904 | struct mem_cgroup * oom_group = NULL |
1907 | If Not cgroup_subsys_on_dfl - fast test on whether a subsys is on default hierarchy*@ss: subsystem in question(memory_cgrp_subsys) Then Return NULL |
1910 | If Not oom_domain Then oom_domain = root_mem_cgroup |
1915 | memcg = mem_cgroup_from_task(victim) |
1916 | If memcg == root_mem_cgroup Then Go to out |
1928 | If memcg == oom_domain Then Break |
1932 | If oom_group Then ss_get - obtain a reference on the specified css*@css: target css* The caller must already have a reference. |
1934 | out : |
1937 | Return oom_group |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |