函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__init_single_page

函数原型:static void __meminit __init_single_page(struct page *page, unsigned long pfn, unsigned long zone, int nid)

返回类型:void

参数:

类型参数名称
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  初始化链表头
调用者
名称描述
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.