函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:More accurate version that also considers the currently pending* deltas. For that we need to loop over all cpus to find the current* deltas. There is no synchronization so the result cannot be* exactly accurate either.

函数原型:static inline unsigned long zone_page_state_snapshot(struct zone *zone, enum zone_stat_item item)

返回类型:unsigned long

参数:

类型参数名称
struct zone *zone
enum zone_stat_itemitem
223  x等于atomic_long_read( & 内存域的统计信息[item])
233  返回:x
调用者
名称描述
zone_reclaimable_pagesThis misses isolated pages which are not accounted for to save counters.* As the data only determines if reclaim or compaction continues, it is* not expected that isolated pages will be a dominating factor.
zone_watermark_ok_safe
should_reclaim_retryChecks whether it makes sense to retry the reclaim to make a forward progress* for the given allocation request.* We give up when we either have tried MAX_RECLAIM_RETRIES in a row* without success, or when we couldn't even meet the watermark if we