Function report |
Source Code:mm\memcontrol.c |
Create Date:2022-07-28 16:12:50 |
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_css_alloc
Proto:static struct cgroup_subsys_state *__ref mem_cgroup_css_alloc(struct cgroup_subsys_state *parent_css)
Type:struct cgroup_subsys_state
Parameter:
Type | Parameter | Name |
---|---|---|
struct cgroup_subsys_state * | parent_css |
4972 | parent = mem_cgroup_from_css(parent_css) |
4976 | memcg = mem_cgroup_alloc() |
4981 | soft_limit = PAGE_COUNTER_MAX |
4982 | If parent Then |
4983 | swappiness = mem_cgroup_swappiness(parent) |
4988 | page_counter_init( & Accounted resources , & Accounted resources ) |
4989 | page_counter_init( & swap, & swap) |
4991 | page_counter_init( & kmem, & kmem) |
4992 | page_counter_init( & tcpmem, & tcpmem) |
4993 | Else |
4994 | page_counter_init( & Accounted resources , NULL) |
4995 | page_counter_init( & swap, NULL) |
4996 | page_counter_init( & Legacy consumer-oriented counters , NULL) |
4997 | page_counter_init( & kmem, NULL) |
4998 | page_counter_init( & tcpmem, NULL) |
5009 | If Not parent Then |
5013 | root_mem_cgroup = memcg |
5014 | Return css |
5017 | error = memcg_online_kmem(memcg) |
5024 | Return css |
5025 | fail : |
5026 | mem_cgroup_id_remove(memcg) |
5027 | mem_cgroup_free(memcg) |
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 |