函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:alloc_node_page_ext

函数原型:static int __init alloc_node_page_ext(int nid)

返回类型:int

参数:

类型参数名称
intnid
141  nr_pages等于该结点以页帧为单位计算的长度,包含内存空洞
142  如果非nr_pages则返回:0
150  如果非IS_ALIGNED(node_start_pfn(nid), MAX_ORDER_NR_PAGES)或非IS_ALIGNED(node_end_pfn(nid), MAX_ORDER_NR_PAGES)则nr_pages加等于MAX_ORDER_NR_PAGES
154  table_size等于page_ext_sizenr_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  如果非base则返回:负ENOMEM
161  node_page_ext等于base
162  total_usage加等于table_size
163  返回:0
调用者
名称描述
page_ext_init_flatmem设置虚拟内存