Function report |
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 activity | Download SCCT | Chinese |
Name:memcg_flush_percpu_vmstats
Proto:static void memcg_flush_percpu_vmstats(struct mem_cgroup *memcg)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct mem_cgroup * | memcg |
| 3294 | unsigned long stat[MEMCG_NR_STAT] = {0} |
| 3298 | for_each_online_cpu(cpu) |
| 3302 | When mi cycle When i < MEMCG_NR_STAT cycle |
| 3304 | atomic_long_add(stat[i], & vmstats[i]) |
| 3306 | for_each_node(node) |
| 3310 | When i < NR_VM_NODE_STAT_ITEMS cycle stat[i] = 0 |
| 3313 | for_each_online_cpu(cpu) |
| 3318 | When pi cycle When i < NR_VM_NODE_STAT_ITEMS cycle |
| 3320 | atomic_long_add(stat[i], & lruvec_stat[i]) |
| Name | Describe |
|---|---|
| mem_cgroup_free |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |