函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:vmemmap_populate_basepages

函数原型:int __meminit vmemmap_populate_basepages(unsigned long start, unsigned long end, int node)

返回类型:int

参数:

类型参数名称
unsigned longstart
unsigned longend
intnode
219  addr等于start
226 addr小于end循环
227  pgd等于vmemmap_pgd_populate(addr, node)
228  如果非pgd则返回:负ENOMEM
230  p4d等于vmemmap_p4d_populate(pgd, addr, node)
231  如果非p4d则返回:负ENOMEM
233  pud等于vmemmap_pud_populate(p4d, addr, node)
234  如果非pud则返回:负ENOMEM
236  pmd等于vmemmap_pmd_populate(pud, addr, node)
237  如果非pmd则返回:负ENOMEM
239  pte等于vmemmap_pte_populate(pmd, addr, node)
240  如果非pte则返回:负ENOMEM
242  vmemmap_verify(pte, node, addr, addr + PAGE_SIZE)
245  返回:0