函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\memcontrol.c Create Date:2022-07-27 17:45:02
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:reclaim_high

函数原型:static void reclaim_high(struct mem_cgroup *memcg, unsigned int nr_pages, gfp_t gfp_mask)

返回类型:void

参数:

类型参数名称
struct mem_cgroup *memcg
unsigned intnr_pages
gfp_tgfp_mask
2230  循环
2231  如果page_counter_read( & Accounted resources )小于等于 Upper bound of normal memory consumption range 则继续下一循环
2233  memcg_memory_event(memcg, MEMCG_HIGH)
2234  try_to_free_mem_cgroup_pages(memcg, nr_pages, gfp_mask, true)
2235 memcg等于parent_mem_cgroup - find the accounting parent of a memcg*@memcg: memcg whose parent to find* Returns the parent memcg, or NULL if this is the root or the memory* controller is in legacy no-hierarchy mode.循环
调用者
名称描述
high_work_func
mem_cgroup_handle_over_highScheduled by try_charge() to be executed from the userland return path* and reclaims memory over the high limit.