函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:zero_pte_populate

函数原型:static void __ref zero_pte_populate(pmd_t *pmd, unsigned long addr, unsigned long end)

返回类型:void

参数:

类型参数名称
pmd_t *pmd
unsigned longaddr
unsigned longend
99  pte等于pte_offset_kernel(pmd, addr)
102  zero_pte等于pfn_pte(PFN_DOWN(We need __phys_reloc_hide() here because gcc may assume that there is no* overflow during __pa() calculation and can optimize it unexpectedly.* Newer versions of gcc provide -fno-strict-overflow switch to handle this* case properly(This page serves two purposes:* - It used as early shadow memory. The entire shadow region populated* with this page, before we will be able to setup normal shadow memory.* - Latter it reused it as zero shadow to cover large ranges of memory)), PAGE_KERNEL)
104  zero_pte等于pte_wrprotect(zero_pte)
106 addrPAGE_SIZE小于等于end循环
107  set_pte_at( & For dynamically allocated mm_structs, there is a dynamically sized cpumask* at the end of the structure, the size of which depends on the maximum CPU* number the system can see, addr, pte, zero_pte)
108  addr加等于PAGE_SIZE
109  pte等于pte_offset_kernel(pmd, addr)
调用者
名称描述
zero_pmd_populate