函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\memcontrol.h Create Date:2022-07-27 06:56:22
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:mem_cgroup_protection

函数原型:static inline unsigned long mem_cgroup_protection(struct mem_cgroup *memcg, bool in_low_reclaim)

返回类型:unsigned long

参数:

类型参数名称
struct mem_cgroup *memcg
boolin_low_reclaim
350  如果mem_cgroup_disabled()则返回:0
353  如果in_low_reclaim则返回:READ_ONCE( effective memory.min and memory.min usage tracking )
356  返回:两数取大(READ_ONCE( effective memory.min and memory.min usage tracking ), READ_ONCE( effective memory.low and memory.low usage tracking ))
调用者
名称描述
get_scan_countDetermine how aggressively the anon and file LRU lists should be* scanned