Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:init_currently_empty_zone

Proto:void __meminit init_currently_empty_zone(struct zone *zone, unsigned long zone_start_pfn, unsigned long size)

Type:void

Parameter:

TypeParameterName
struct zone *zone
unsigned longzone_start_pfn
unsigned longsize
6190  pgdat = zone_pgdat
6191  zone_idx = zone_idx() returns 0 for the ZONE_DMA zone, 1 for the ZONE_NORMAL zone, etc.(zone) + 1
6193  If zone_idx > nr_zones Then nr_zones = zone_idx
6196  zone_start_pfn == zone_start_paddr >> PAGE_SHIFT = zone_start_pfn
6198  mminit_dprintk(MMINIT_TRACE, "memmap_init", "Initialising map node %d zone %lu pfns %lu -> %lu\n", node_id, (unsignedlong)zone_idx(zone), zone_start_pfn, (zone_start_pfn + size))
6204  zone_init_free_lists(zone)
6205  initialized = 1
Caller
NameDescribe
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.