函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:boost_watermark

函数原型:static inline void boost_watermark(struct zone *zone)

返回类型:void

参数:

类型参数名称
struct zone *zone
2351  如果非watermark_boost_factor则返回
2354  max_boost等于Multiplies an integer by a fraction, while avoiding unnecessary* overflow or loss of precision.( zone watermarks, access with *_wmark_pages(zone) macros [WMARK_HIGH], watermark_boost_factor, 10000)
2365  如果非max_boost则返回
2368  max_boost等于两数取大(pageblock_nr_pages, max_boost)
2370  watermark_boost等于两数取小(watermark_boost + pageblock_nr_pages, max_boost)
调用者
名称描述
steal_suitable_fallbackThis function implements actual steal behaviour. If order is large enough,* we can steal whole pageblock. If not, we first move freepages in this* pageblock to our migratetype and determine how many already-allocated pages