Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__init_single_page

Proto:static void __meminit __init_single_page(struct page *page, unsigned long pfn, unsigned long zone, int nid)

Type:void

Parameter:

TypeParameterName
struct page *page
unsigned longpfn
unsigned longzone
intnid
1343  mm_zero_struct_page(page)
1344  set_page_links(page, zone, nid, pfn)
1345  Setup the page count before being freed into the page allocator for* the first time (boot or memory hotplug)
1346  The atomic page->_mapcount, starts from -1: so that transitions* both from it and to it can be tracked, using atomic_inc_and_test* and atomic_add_negative(-1).
1347  page_cpupid_reset_last(page)
1348  page_kasan_tag_reset(page)
1350  Initialization list head
Caller
NameDescribe
memmap_init_zoneInitially all pages are reserved - free ones are freed* up by memblock_free_all() once the early boot process is* done. Non-atomic initialization, single-pass.