Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:mem_cgroup_protection

Proto:static inline unsigned long mem_cgroup_protection(struct mem_cgroup *memcg, bool in_low_reclaim)

Type:unsigned long

Parameter:

TypeParameterName
struct mem_cgroup *memcg
boolin_low_reclaim
350  If mem_cgroup_disabled() Then Return 0
353  If in_low_reclaim Then Return READ_ONCE( effective memory.min and memory.min usage tracking )
356  Return max - return maximum of two values of the same or compatible types*@x: first value*@y: second value(READ_ONCE( effective memory.min and memory.min usage tracking ), READ_ONCE( effective memory.low and memory.low usage tracking ))
Caller
NameDescribe
get_scan_countDetermine how aggressively the anon and file LRU lists should be* scanned