函数逻辑报告 |
Source Code:mm\memcontrol.c |
Create Date:2022-07-27 17:45:27 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:mem_cgroup_resize_max
函数原型:static int mem_cgroup_resize_max(struct mem_cgroup *memcg, unsigned long max, bool memsw)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct mem_cgroup * | memcg | |
unsigned long | max | |
bool | memsw |
2992 | bool enlarge = false |
2993 | bool drained = false |
2998 | 循环 |
2999 | 如果signal_pending(当前进程)则 |
3004 | mutex_lock( & memcg_max_mutex) |
3011 | 如果非limits_invariant则 |
3014 | 退出 |
3024 | 如果非drained则 |
3025 | Drains all per-CPU charge caches for given root_memcg resp. subtree* of the hierarchy under it. |
3026 | drained = true |
3027 | 继续下一循环 |
3030 | 如果非try_to_free_mem_cgroup_pages(memcg, 1, GFP_KERNEL, !memsw)则 |
3035 | 当(true)循环 |
3037 | 如果非ret且enlarge则memcg_oom_recover(memcg) |
3040 | 返回:ret |
名称 | 描述 |
---|---|
mem_cgroup_write | The user of this function is...* RES_LIMIT. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |