函数逻辑报告 |
Source Code:mm\memcontrol.c |
Create Date:2022-07-27 17:46:08 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:memcg_numa_stat_show
函数原型:static int memcg_numa_stat_show(struct seq_file *m, void *v)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct seq_file * | m | |
void * | v |
3654 | static const struct numa_stat stats[] = {{"total", LRU_ALL}, {"file", LRU_ALL_FILE}, {"anon", LRU_ALL_ANON}, {"unevictable", BIT(LRU_UNEVICTABLE)}, } |
3663 | memcg等于mem_cgroup_from_seq(m) |
3666 | nr等于mem_cgroup_nr_lru_pages(memcg, lru_mask) |
3667 | seq_printf(m, "%s=%lu", name, nr) |
3668 | for_each_node_state(nid, N_MEMORY) |
3669 | nr等于mem_cgroup_node_nr_lru_pages(memcg, nid, lru_mask) |
3671 | seq_printf(m, " N%d=%lu", nid, nr) |
3679 | nr等于0 |
3680 | Iteration constructs for visiting all cgroups (under a tree). If* loops are exited prematurely (break), mem_cgroup_iter_break() must* be used for reference counting.(iter, memcg) |
3681 | nr加等于mem_cgroup_nr_lru_pages(iter, lru_mask) |
3682 | seq_printf(m, "hierarchical_%s=%lu", name, nr) |
3683 | for_each_node_state(nid, N_MEMORY) |
3693 | 返回:0 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |