Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\memcontrol.c Create Date:2022-07-28 16:11:20
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:memcg_flush_percpu_vmstats

Proto:static void memcg_flush_percpu_vmstats(struct mem_cgroup *memcg)

Type:void

Parameter:

TypeParameterName
struct mem_cgroup *memcg
3294  unsigned long stat[MEMCG_NR_STAT] = {0}
3298  for_each_online_cpu(cpu)
3299  When i < MEMCG_NR_STAT cycle stat[i] += per_cpu(stat[i], cpu)
3302  When mi cycle When i < MEMCG_NR_STAT cycle
3304  atomic_long_add(stat[i], & vmstats[i])
3306  for_each_node(node)
3307  pn = nodeinfo[node]
3310  When i < NR_VM_NODE_STAT_ITEMS cycle stat[i] = 0
3313  for_each_online_cpu(cpu)
3314  When i < NR_VM_NODE_STAT_ITEMS cycle stat[i] += per_cpu(count[i], cpu)
3318  When pi cycle When i < NR_VM_NODE_STAT_ITEMS cycle
3320  atomic_long_add(stat[i], & lruvec_stat[i])
Caller
NameDescribe
mem_cgroup_free