Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:alloc_node_page_ext

Proto:static int __init alloc_node_page_ext(int nid)

Type:int

Parameter:

TypeParameterName
intnid
141  nr_pages = total size of physical page range, including holes
142  If Not nr_pages Then Return 0
150  If Not IS_ALIGNED(node_start_pfn(nid), MAX_ORDER_NR_PAGES) || Not IS_ALIGNED(node_end_pfn(nid), MAX_ORDER_NR_PAGES) Then nr_pages += MAX_ORDER_NR_PAGES
154  table_size = page_ext_size * nr_pages
156  base = memblock_alloc_try_nid - allocate boot memory block*@size: size of memory block to be allocated in bytes*@align: alignment of the region and block's size*@min_addr: the lower bound of the memory region from where the allocation* is preferred (phys
159  If Not base Then Return -ENOMEM
161  node_page_ext = base
162  total_usage += table_size
163  Return 0
Caller
NameDescribe
page_ext_init_flatmem