Function report | 
Source Code:mm\memcontrol.c | 
Create Date:2022-07-28 16:12:46 | 
| 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_alloc
Proto:static struct mem_cgroup *mem_cgroup_alloc(void)
Type:struct mem_cgroup
Parameter:Nothing
| 4909 | int __maybe_unused i | 
| 4911 | size = sizeof(structmem_cgroup) | 
| 4912 | size += nr_node_ids * size of * | 
| 4914 | memcg = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc). | 
| 4915 | If Not memcg Then Return NULL | 
| 4924 | Legacy local VM stats and events = alloc_percpu(structmemcg_vmstats_percpu) | 
| 4925 | If Not Legacy local VM stats and events Then Go to fail | 
| 4929 | If Not Subtree VM stats and events (batched updates) Then Go to fail | 
| 4932 | for_each_node(node) | 
| 4933 | If alloc_mem_cgroup_per_node_info(memcg, node) Then Go to fail | 
| 4936 | If memcg_wb_domain_init(memcg, GFP_KERNEL) Then Go to fail | 
| 4943 | vmpressure_init( & vmpressure notifications ) | 
| 4946 | socket_pressure = jiffies | 
| 4959 | split_queue_len = 0 | 
| 4962 | Return memcg | 
| 4963 | fail : | 
| 4964 | mem_cgroup_id_remove(memcg) | 
| 4965 | __mem_cgroup_free(memcg) | 
| 4966 | Return NULL | 
| Name | Describe | 
|---|---|
| mem_cgroup_css_alloc | 
| 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  |