函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:vmpressure_calc_level

函数原型:static enum vmpressure_levels vmpressure_calc_level(unsigned long scanned, unsigned long reclaimed)

返回类型:enum vmpressure_levels

参数:

类型参数名称
unsigned longscanned
unsigned longreclaimed
124  scale等于scannedreclaimed
125  pressure等于0
132  如果reclaimed大于等于scanned则转到:out
141  pressure等于scalereclaimedscalescanned
142  pressure等于pressure乘100除scale
144  out :
145  pr_debug("%s: %3lu (s: %lu r: %lu)\n", __func__, pressure, scanned, reclaimed)
148  返回:vmpressure_level(pressure)
调用者
名称描述
vmpressure_work_fn
vmpressurevmpressure() - 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