函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:vmpressure_prio() - Account memory pressure through reclaimer priority level*@gfp: reclaimer's gfp mask*@memcg: cgroup memory controller handle*@prio: reclaimer's priority* This function should be called from the reclaim path every time when

函数原型:void vmpressure_prio(gfp_t gfp, struct mem_cgroup *memcg, int prio)

返回类型:void

参数:

类型参数名称
gfp_tgfp
struct mem_cgroup *memcg
intprio
329  如果prio大于When there are too little pages left to scan, vmpressure() may miss the* critical pressure as number of pages will be less than "window size"则返回
339  vmpressure() - Account memory pressure through scanned/reclaimed ratio*@gfp: reclaimer's gfp mask*@memcg: cgroup memory controller handle*@tree: legacy subtree mode*@scanned: number of pages scanned*@reclaimed: number of pages reclaimed* This function
调用者
名称描述
do_try_to_free_pagesThis is the main entry point to direct page reclaim