函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\memcontrol.c Create Date:2022-07-27 17:46:08
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:memcg_numa_stat_show

函数原型:static int memcg_numa_stat_show(struct seq_file *m, void *v)

返回类型:int

参数:

类型参数名称
struct seq_file *m
void *v
3649  struct numa_stat{const char * name;unsigned int lru_mask;}
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)
3665 stat小于statsARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(stats)循环
3666  nr等于mem_cgroup_nr_lru_pages(memcg, lru_mask)
3667  seq_printf(m, "%s=%lu", name, nr)
3671  seq_printf(m, " N%d=%lu", nid, nr)
3673  seq_putc(m, '\n')
3676 stat小于statsARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(stats)循环
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)
3684  nr等于0
3688  seq_printf(m, " N%d=%lu", nid, nr)
3690  seq_putc(m, '\n')
3693  返回:0