函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:zero_p4d_populate

函数原型:static int __ref zero_p4d_populate(pgd_t *pgd, unsigned long addr, unsigned long end)

返回类型:int

参数:

类型参数名称
pgd_t *pgd
unsigned longaddr
unsigned longend
186  p4d等于p4d_offset(pgd, addr)
189  循环
190  next等于p4d_addr_end(addr, end)
191  如果IS_ALIGNED(addr, P4D_SIZE)且endaddr大于等于P4D_SIZE
197  pud等于pud_offset(p4d, addr)
200  pmd等于pmd_offset(pud, addr)
203  继续下一循环
209  如果slab_is_available()则
213  否则
218  zero_pud_populate(p4d, addr, next)
219 p4d自加, addr等于next, addr不等于end循环
221  返回:0
调用者
名称描述
kasan_populate_early_shadowkasan_populate_early_shadow - populate shadow memory region with* kasan_early_shadow_page*@shadow_start - start of the memory range to populate*@shadow_end - end of the memory range to populate