函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:init_currently_empty_zone

函数原型:void __meminit init_currently_empty_zone(struct zone *zone, unsigned long zone_start_pfn, unsigned long size)

返回类型:void

参数:

类型参数名称
struct zone *zone
unsigned longzone_start_pfn
unsigned longsize
6190  pgdat等于建立内存域和父结点之间的关联
6191  zone_idx等于zone_idx() returns 0 for the ZONE_DMA zone, 1 for the ZONE_NORMAL zone, etc.(zone)加1
6193  如果zone_idx大于保存结点中不同内存域的数目保存结点中不同内存域的数目等于zone_idx
6196  内存域第一个页帧的索引等于zone_start_pfn
6198  mminit_dprintk(MMINIT_TRACE, "memmap_init", "Initialising map node %d zone %lu pfns %lu -> %lu\n", 全局结点ID, (unsignedlong)zone_idx(zone), zone_start_pfn, (zone_start_pfn + size))
6204  zone_init_free_lists(zone)
6205  initialized等于1
调用者
名称描述
free_area_init_coreSet up the zone data structures:* - mark all pages reserved* - mark all memory queues empty* - clear the memory bitmaps* NOTE: pgdat should get zeroed by caller.* NOTE: this function is only called during early init.