Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:vmemmap_alloc_block

Proto:void *__meminit vmemmap_alloc_block(unsigned long size, int node)

Type:void

Parameter:

TypeParameterName
unsigned longsize
intnode
52  If slab_is_available() Then
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  If page Then Return page_address(page)
62  If Not warned Then
65  warned = true
67  Return NULL
68  Else Return 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.
Caller
NameDescribe
vmemmap_alloc_block_bufd to make sure size is all the same during early stage
vmemmap_alloc_block_zero