Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:gfp_to_alloc_flags

Proto:static inline unsigned int gfp_to_alloc_flags(gfp_t gfp_mask)

Type:unsigned int

Parameter:

TypeParameterName
gfp_tgfp_mask
4175  alloc_flags = The ALLOC_WMARK bits are used as an index to zone->watermark | check for correct cpuset
4178  BUILD_BUG_ON - break compile if a condition is true(__GFP_HIGH != (__forcegfp_t)__GFP_HIGH set )
4186  alloc_flags |= (__force int)(gfp_mask & __GFP_HIGH)
4188  If gfp_mask & DOC: Watermark modifiers* Watermark modifiers -- controls access to emergency reserves* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~* %__GFP_HIGH indicates that the caller is high-priority and that granting Then
4193  If Not (gfp_mask & __GFP_NOMEMALLOC) Then alloc_flags |= ry to alloc harder
4199  alloc_flags &= ~check for correct cpuset
4200  Else if Value for the false possibility is greater at compile time(rt_task(current process)) && Not in_interrupt() Then alloc_flags |= ry to alloc harder
4203  If gfp_mask & kswapd can wake Then alloc_flags |= allow waking of kswapd
4207  If gfpflags_to_migratetype(gfp_mask) == MIGRATE_MOVABLE Then alloc_flags |= allow allocations from CMA areas
4210  Return alloc_flags
Caller
NameDescribe
__alloc_pages_slowpath