Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:memcg_hotplug_cpu_dead

Proto:static int memcg_hotplug_cpu_dead(unsigned int cpu)

Type:int

Parameter:

TypeParameterName
unsigned intcpu
2183  stock = per_cpu(memcg_stock, cpu)
2184  Returns stocks cached in percpu and reset cached information.
2189  When i < MEMCG_NR_STAT cycle
2193  x = this_cpu_xchg(stat[i], 0)
2194  If x Then When mi cycle
2196  atomic_long_add(x, & vmstats[i])
2198  If i >= NR_VM_NODE_STAT_ITEMS Then Continue
2201  for_each_node(nid)
2205  x = this_cpu_xchg(count[i], 0)
2206  If x Then Do
2209  When pn = parent_nodeinfo(pn, nid) cycle
2213  When i < CONFIG_DEBUG_TLBFLUSH cycle
2216  x = this_cpu_xchg(events[i], 0)
2217  If x Then When mi cycle
2219  atomic_long_add(x, & vmevents[i])
2223  Return 0