Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\page_alloc.c Create Date:2022-07-28 15:05:46
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

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

Proto:static inline int __gfp_pfmemalloc_flags(gfp_t gfp_mask)

Type:int

Parameter:

TypeParameterName
gfp_tgfp_mask
4234  If Value for the false possibility is greater at compile time(gfp_mask & __GFP_NOMEMALLOC) Then Return 0
4236  If gfp_mask & __GFP_MEMALLOC Then Return don't check watermarks at all
4238  If in_serving_softirq() && flags & Allocating memory Then Return don't check watermarks at all
4240  If Not in_interrupt() Then
4241  If flags & Allocating memory Then Return don't check watermarks at all
4243  Else if oom_reserves_allowed(current process) Then Return 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  Return 0
Caller
NameDescribe
gfp_pfmemalloc_allowed
__alloc_pages_slowpath