函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Distinguish requests which really need access to full memory* reserves from oom victims which can live with a portion of it

函数原型:static inline int __gfp_pfmemalloc_flags(gfp_t gfp_mask)

返回类型:int

参数:

类型参数名称
gfp_tgfp_mask
4234  如果此条件成立可能性小(为编译器优化)(gfp_mask & __GFP_NOMEMALLOC)则返回:0
4236  如果gfp_mask按位与__GFP_MEMALLOC则返回:don't check watermarks at all
4238  如果in_serving_softirq()且flags按位与Allocating memory 则返回:don't check watermarks at all
4240  如果非in_interrupt()则
4241  如果flags按位与Allocating memory 则返回:don't check watermarks at all
4243  否则如果oom_reserves_allowed(当前进程)则返回:Only MMU archs have async oom victim reclaim - aka oom_reaper so we* cannot assume a reduced access to memory reserves is sufficient for* !MMU
4247  返回:0
调用者
名称描述
gfp_pfmemalloc_allowed
__alloc_pages_slowpath