函数逻辑报告 |
Source Code:mm\memcontrol.c |
Create Date:2022-07-27 17:43:52 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:mem_cgroup_iter - iterate over memory cgroup hierarchy*@root: hierarchy root*@prev: previously returned memcg, NULL on first invocation*@reclaim: cookie for shared reclaim walks, NULL for full walks* Returns references to children of the hierarchy below
函数原型:struct mem_cgroup *mem_cgroup_iter(struct mem_cgroup *root, struct mem_cgroup *prev, struct mem_cgroup_reclaim_cookie *reclaim)
返回类型:struct mem_cgroup
参数:
类型 | 参数 | 名称 |
---|---|---|
struct mem_cgroup * | root | |
struct mem_cgroup * | prev | |
struct mem_cgroup_reclaim_cookie * | reclaim |
1011 | struct cgroup_subsys_state * css = NULL |
1012 | struct mem_cgroup * memcg = NULL |
1013 | struct mem_cgroup * pos = NULL |
1015 | 如果mem_cgroup_disabled()则返回:NULL |
1018 | 如果非root则root等于root_mem_cgroup |
1032 | 如果reclaim则 |
1035 | mz等于mem_cgroup_nodeinfo(root, 全局结点ID) |
1038 | 如果prev且generation不等于 scan generation, increased every round-trip 则转到:out_unlock |
1041 | 当1循环 |
1060 | 循环 |
1062 | 如果非css则 |
1079 | memcg等于mem_cgroup_from_css(css) |
1087 | memcg = NULL |
1090 | 如果reclaim则 |
1101 | 如果非memcg则 scan generation, increased every round-trip 自加 |
1107 | out_unlock : |
1109 | out : |
1113 | 返回:memcg |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |