函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:should_compact_retry

函数原型:static inline bool should_compact_retry(struct alloc_context *ac, unsigned int order, int alloc_flags, enum compact_result compact_result, enum compact_priority *compact_priority, int *compaction_retries)

返回类型:bool

参数:

类型参数名称
struct alloc_context *ac
unsigned intorder
intalloc_flags
enum compact_resultcompact_result
enum compact_priority *compact_priority
int *compaction_retries
4026  如果非orderorder大于PAGE_ALLOC_COSTLY_ORDER is the order at which allocations are deemed* costly to service. That is between allocation orders which should* coalesce naturally under reasonable reclaim pressure and those which* will not.则返回:false
4037  如果zone_watermark_ok(zone, 0, min_wmark_pages(zone), ac_classzone_idx(ac), alloc_flags)则返回:true
4041  返回:false
调用者
名称描述
__alloc_pages_slowpath