函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:zero_pmd_populate

函数原型:static int __ref zero_pmd_populate(pud_t *pud, unsigned long addr, unsigned long end)

返回类型:int

参数:

类型参数名称
pud_t *pud
unsigned longaddr
unsigned longend
116  pmd等于pmd_offset(pud, addr)
119  循环
120  next等于pmd_addr_end(addr, end)
122  如果IS_ALIGNED(addr, PMD_SIZE)且endaddr大于等于PMD_SIZE
125  继续下一循环
128  如果pmd_none( * pmd)则
133  否则p等于early_alloc(PAGE_SIZE, NUMA_NO_NODE)
135  如果非p则返回:负ENOMEM
140  zero_pte_populate(pmd, addr, next)
141 pmd自加, addr等于next, addr不等于end循环
143  返回:0
调用者
名称描述
zero_pud_populate