函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:vmemmap_alloc_block

函数原型:void *__meminit vmemmap_alloc_block(unsigned long size, int node)

返回类型:void

参数:

类型参数名称
unsigned longsize
intnode
52  如果slab_is_available()则
53  gfp_mask等于GFP_KERNEL按位或__GFP_RETRY_MAYFAIL按位或DOC: Action modifiers* Action modifiers* ~~~~~~~~~~~~~~~~* %__GFP_NOWARN suppresses allocation failure reports.* %__GFP_COMP address compound page metadata.* %__GFP_ZERO returns a zeroed page on success.
54  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
58  page等于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.
59  如果page则返回:page_address(page)
62  如果非warned
65  warned = true
67  返回:NULL
68  否则返回:Allocate a block of memory to be used to back the virtual memory map* or to back the page tables that are used to create the mapping.* Uses the main allocators if they are available, else bootmem.
调用者
名称描述
vmemmap_alloc_block_bufd to make sure size is all the same during early stage
vmemmap_alloc_block_zero