函数逻辑报告 |
Source Code:mm\memcontrol.c |
Create Date:2022-07-27 17:47:14 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:mem_cgroup_alloc
函数原型:static struct mem_cgroup *mem_cgroup_alloc(void)
返回类型:struct mem_cgroup
参数:无
4909 | int __maybe_unused i |
4911 | size等于sizeof(structmem_cgroup) |
4912 | size加等于nr_node_ids乘*的长度 |
4915 | 如果非memcg则返回:NULL |
4924 | Legacy local VM stats and events 等于alloc_percpu(structmemcg_vmstats_percpu) |
4925 | 如果非 Legacy local VM stats and events 则转到:fail |
4929 | 如果非 Subtree VM stats and events (batched updates) 则转到:fail |
4932 | for_each_node(node) |
4933 | 如果alloc_mem_cgroup_per_node_info(memcg, node)则转到:fail |
4936 | 如果memcg_wb_domain_init(memcg, GFP_KERNEL)则转到:fail |
4940 | 初始化链表头 |
4943 | vmpressure_init( & vmpressure notifications ) |
4944 | 初始化链表头 |
4945 | spin_lock_init( & event_list_lock) |
4946 | socket_pressure等于jiffies |
4957 | spin_lock_init( & split_queue_lock) |
4958 | 初始化链表头 |
4959 | split_queue_len等于0 |
4962 | 返回:memcg |
4963 | fail : |
4964 | mem_cgroup_id_remove(memcg) |
4965 | __mem_cgroup_free(memcg) |
4966 | 返回:NULL |
名称 | 描述 |
---|---|
mem_cgroup_css_alloc |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |