函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\sched\mm.h Create Date:2022-07-27 06:42:45
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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.

函数原型:static inline gfp_t current_gfp_context(gfp_t flags)

返回类型:gfp_t

参数:

类型参数名称
gfp_tflags
182  如果此条件成立可能性小(为编译器优化)(flags & (PF_MEMALLOC_NOIO | PF_MEMALLOC_NOFS | PF_MEMALLOC_NOCMA))则
188  如果flags按位与PF_MEMALLOC_NOIOflags与等于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  否则如果flags按位与PF_MEMALLOC_NOFSflags与等于__GFP_FS的反
193  如果flags按位与PF_MEMALLOC_NOCMAflags与等于ZONE_MOVABLE allowed 的反
197  返回:flags
调用者
名称描述
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.