Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:mem_cgroup_usage

Proto:static unsigned long mem_cgroup_usage(struct mem_cgroup *memcg, bool swap)

Type:unsigned long

Parameter:

TypeParameterName
struct mem_cgroup *memcg
boolswap
3227  If mem_cgroup_is_root(memcg) Then
3228  val = dx can be of type enum memcg_stat_item or node_stat_item.* Keep in sync with memcg_exact_page_state(). + dx can be of type enum memcg_stat_item or node_stat_item.* Keep in sync with memcg_exact_page_state().
3230  If swap Then val += dx can be of type enum memcg_stat_item or node_stat_item.* Keep in sync with memcg_exact_page_state().
3232  Else
3233  If Not swap Then val = page_counter_read( & Accounted resources )
3235  Else val = page_counter_read( & Legacy consumer-oriented counters )
3238  Return val
Caller
NameDescribe
mem_cgroup_read_u64
__mem_cgroup_threshold
__mem_cgroup_usage_register_event
__mem_cgroup_usage_unregister_event