Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:alloc_pages_exact_nid - allocate an exact number of physically-contiguous* pages on a node

Proto:void *__meminit alloc_pages_exact_nid(int nid, size_t size, gfp_t gfp_mask)

Type:void

Parameter:

TypeParameterName
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  If WARN_ON_ONCE(gfp_mask & __GFP_COMP) Then 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  If Not p Then Return NULL
4987  Return make_alloc_exact((unsignedlong)page_address(p), order, size)