函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:alloc_pages_exact_nid - allocate an exact number of physically-contiguous* pages on a node

函数原型:void *__meminit alloc_pages_exact_nid(int nid, size_t size, gfp_t gfp_mask)

返回类型:void

参数:

类型参数名称
intnid
size_tsize
gfp_tgfp_mask
4978  order等于get_order - Determine the allocation order of a memory size*@size: The size for which to get the order* Determine the allocation order of a particular sized block of memory
4981  如果WARN_ON_ONCE(gfp_mask & __GFP_COMP)则gfp_mask与等于__GFP_COMP的反
4984  p等于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.
4985  如果非p则返回:NULL
4987  返回:make_alloc_exact((unsignedlong)page_address(p), order, size)