函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\machine_kexec_32.c Create Date:2022-07-27 09:36:04
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:machine_kexec_page_table_set_one

函数原型:static void machine_kexec_page_table_set_one(pgd_t *pgd, pmd_t *pmd, pte_t *pte, unsigned long vaddr, unsigned long paddr)

返回类型:void

参数:

类型参数名称
pgd_t *pgd
pmd_t *pmd
pte_t *pte
unsigned longvaddr
unsigned longpaddr
98  pgd加等于he pgd page can be thought of an array like this: pgd_t[PTRS_PER_PGD]* this macro returns the index of the entry in the pgd page which would* control the given virtual address(vaddr)
103  p4d等于p4d_offset(pgd, vaddr)
104  pud等于pud_offset(p4d, vaddr)
105  pmd等于pmd_offset(pud, vaddr)
106  如果非pmd_val( * pmd)按位与_PAGE_PRESENT的值则set_pmd(pmd, __pmd(__pa(pte) | _PAGE_TABLE))
108  pte等于pte_offset_kernel(pmd, vaddr)
109  set_pte(pte, pfn_pte(paddr >> PAGE_SHIFT determines the page size , PAGE_KERNEL_EXEC))
调用者
名称描述
machine_kexec_prepare_page_tables