函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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

函数原型:void *alloc_pages_exact(size_t size, gfp_t gfp_mask)

返回类型:void

参数:

类型参数名称
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  如果WARN_ON_ONCE(gfp_mask & __GFP_COMP)则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  返回:make_alloc_exact(addr, order, size)
调用者
名称描述
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
profile_init分配内核性能统计
do_mmap_privateset up a private mapping or an anonymous shared mapping