函数逻辑报告 |
Source Code:mm\memcontrol.c |
Create Date:2022-07-27 17:48:36 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:mem_cgroup_protected - check if memory consumption is in the normal range*@root: the top ancestor of the sub-tree being checked*@memcg: the memory cgroup to check* WARNING: This function is not stateless! It can only be used as part
函数原型:enum mem_cgroup_protection mem_cgroup_protected(struct mem_cgroup *root, struct mem_cgroup *memcg)
返回类型:enum mem_cgroup_protection
参数:
类型 | 参数 | 名称 |
---|---|---|
struct mem_cgroup * | root | |
struct mem_cgroup * | memcg |
6250 | 如果mem_cgroup_disabled()则返回:MEMCG_PROT_NONE |
6253 | 如果非root则root等于root_mem_cgroup |
6255 | 如果memcg恒等于root则返回:MEMCG_PROT_NONE |
6258 | usage等于page_counter_read( & Accounted resources ) |
6259 | 如果非usage则返回:MEMCG_PROT_NONE |
6267 | 如果非parent则返回:MEMCG_PROT_NONE |
6274 | emin等于两数取小(emin, parent_emin) |
6275 | 如果emin且parent_emin则 |
6282 | 如果min_usage且siblings_min_usage则emin等于两数取小(emin, parent_emin * min_usage / siblings_min_usage) |
6288 | elow等于两数取小(elow, parent_elow) |
6289 | 如果elow且parent_elow则 |
6296 | 如果low_usage且siblings_low_usage则elow等于两数取小(elow, parent_elow * low_usage / siblings_low_usage) |
6301 | exit : |
6305 | 如果usage小于等于emin则返回:MEMCG_PROT_MIN |
6307 | 否则如果usage小于等于elow则返回:MEMCG_PROT_LOW |
6309 | 否则返回:MEMCG_PROT_NONE |
名称 | 描述 |
---|---|
shrink_node_memcgs |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |