Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:make_alloc_exact

Proto:static void *make_alloc_exact(unsigned long addr, unsigned int order, size_t size)

Type:void

Parameter:

TypeParameterName
unsigned longaddr
unsigned intorder
size_tsize
4923  If addr Then
4924  alloc_end = addr + (PAGE_SIZE << order)
4925  used = addr + align the pointer to the (next) page boundary (size)
4927  split_page takes a non-compound higher-order page, and splits it into* n (1<
4928  When used < alloc_end cycle
4929  free_page(used)
4930  used += PAGE_SIZE
4933  Return addr
Caller
NameDescribe
alloc_pages_exactalloc_pages_exact - allocate an exact number physically-contiguous pages.*@size: the number of bytes to allocate*@gfp_mask: GFP flags for the allocation, must not contain __GFP_COMP* This function is similar to alloc_pages(), except that it allocates the
alloc_pages_exact_nidalloc_pages_exact_nid - allocate an exact number of physically-contiguous* pages on a node