Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:alloc_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

Proto:void *alloc_pages_exact(size_t size, gfp_t gfp_mask)

Type:void

Parameter:

TypeParameterName
size_tsize
gfp_tgfp_mask
4953  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
4956  If WARN_ON_ONCE(gfp_mask & __GFP_COMP) Then gfp_mask &= ~__GFP_COMP
4959  addr = Common helper functions. Never use with __GFP_HIGHMEM because the returned* address cannot represent highmem pages. Use alloc_pages and then kmap if* you need to access high mem.
4960  Return make_alloc_exact(addr, order, size)
Caller
NameDescribe
crash_save_vmcoreinfo_init
alloc_large_system_hashallocate a large system hash table from bootmem* - it is assumed that the hash table must contain an exact power-of-2* quantity of entries* - limit is the number of hash buckets, not the total allocation size