Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\sched\mm.h Create Date:2022-07-28 05:40:54
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Applies per-task gfp context to the given allocation flags.* PF_MEMALLOC_NOIO implies GFP_NOIO* PF_MEMALLOC_NOFS implies GFP_NOFS* PF_MEMALLOC_NOCMA implies no allocation from CMA region.

Proto:static inline gfp_t current_gfp_context(gfp_t flags)

Type:gfp_t

Parameter:

TypeParameterName
gfp_tflags
182  If Value for the false possibility is greater at compile time(flags & (PF_MEMALLOC_NOIO | PF_MEMALLOC_NOFS | PF_MEMALLOC_NOCMA)) Then
188  If flags & PF_MEMALLOC_NOIO Then flags &= ~(DOC: Reclaim modifiers* Reclaim modifiers* ~~~~~~~~~~~~~~~~~* %__GFP_IO can start physical IO.* %__GFP_FS can call down to the low-level FS. Clearing the flag avoids the* allocator recursing into the filesystem which might already be holding* locks. | __GFP_FS)
190  Else if flags & PF_MEMALLOC_NOFS Then flags &= ~__GFP_FS
193  If flags & PF_MEMALLOC_NOCMA Then flags &= ~ZONE_MOVABLE allowed
197  Return flags
Caller
NameDescribe
try_to_free_pages
try_to_free_mem_cgroup_pages
__node_reclaimTry to free up some pages from this node through reclaim.
__alloc_pages_nodemaskThis is the 'heart' of the zoned buddy allocator.