Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\memcontrol.h Create Date:2022-07-28 05:57:21
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:dx can be of type enum memcg_stat_item or node_stat_item.* Keep in sync with memcg_exact_page_state().

Proto:static inline unsigned long memcg_page_state_local(struct mem_cgroup *memcg, int idx)

Type:unsigned long

Parameter:

TypeParameterName
struct mem_cgroup *memcg
intidx
601  x = 0
604  for_each_possible_cpu(cpu)
605  x += per_cpu(stat[idx], cpu)
610  Return x
Caller
NameDescribe
mem_cgroup_nr_lru_pages
memcg_stat_show