函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:zone_spanned_pages_in_node

函数原型:static inline unsigned long __init zone_spanned_pages_in_node(int nid, unsigned long zone_type, unsigned long node_start_pfn, unsigned long node_end_pfn, unsigned long *zone_start_pfn, unsigned long *zone_end_pfn, unsigned long *zones_size)

返回类型:unsigned long

参数:

类型参数名称
intnid
unsigned longzone_type
unsigned longnode_start_pfn
unsigned longnode_end_pfn
unsigned long *zone_start_pfn
unsigned long *zone_end_pfn
unsigned long *zones_size
6495  zone_start_pfn等于node_start_pfn
6496 zone小于zone_type循环zone_start_pfn加等于zones_size[zone]
6499  zone_end_pfn等于zone_start_pfnzones_size[zone_type]
6501  返回:zones_size[zone_type]
调用者
名称描述
calculate_node_totalpages