函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Page Fragment:* An arbitrary-length arbitrary-offset area of memory which resides* within a 0 or higher order page

函数原型:static struct page *__page_frag_cache_refill(struct page_frag_cache *nc, gfp_t gfp_mask)

返回类型:struct page

参数:

类型参数名称
struct page_frag_cache *nc
gfp_tgfp_mask
4827  struct page * page = NULL
4828  gfp等于gfp_mask
4831  gfp_mask或等于__GFP_COMP按位或DOC: Action modifiers* Action modifiers* ~~~~~~~~~~~~~~~~* %__GFP_NOWARN suppresses allocation failure reports.* %__GFP_COMP address compound page metadata.* %__GFP_ZERO returns a zeroed page on success.按位或__GFP_NORETRY按位或__GFP_NOMEMALLOC
4833  page等于Allocate pages, preferring the node given as nid. When nid == NUMA_NO_NODE,* prefer the current CPU's closest node. Otherwise node must be valid and* online.
4835  size等于如果pagePAGE_FRAG_CACHE_MAX_SIZE否则PAGE_SIZE
4837  如果此条件成立可能性小(为编译器优化)(!page)则page等于Allocate pages, preferring the node given as nid. When nid == NUMA_NO_NODE,* prefer the current CPU's closest node. Otherwise node must be valid and* online.
4840  va = page ? page_address(page) : NULL
4842  返回:page
调用者
名称描述
page_frag_alloc