函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\tboot.c Create Date:2022-07-27 08:53:27
Last Modify:2022-05-22 06:45:44 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:map_tboot_page

函数原型:static int map_tboot_page(unsigned long vaddr, unsigned long pfn, pgprot_t prot)

返回类型:int

参数:

类型参数名称
unsigned longvaddr
unsigned longpfn
pgprot_tprot
112  pgd等于a shortcut to get a pgd_t in a given mm( & tboot_mm, vaddr)
113  p4d等于The following ifdef needed to get the 5level-fixup.h header to work.* Remove it when 5level-fixup.h has been removed.
114  如果非p4d则返回:负1
116  pud等于pud_alloc( & tboot_mm, p4d, vaddr)
117  如果非pud则返回:负1
119  pmd等于pmd_alloc( & tboot_mm, pud, vaddr)
120  如果非pmd则返回:负1
122  pte等于pte_alloc_map( & tboot_mm, pmd, vaddr)
123  如果非pte则返回:负1
125  set_pte_at( & tboot_mm, vaddr, pte, pfn_pte(pfn, prot))
126  pte_unmap(pte)
136  pgd与等于_PAGE_NX的反
138  返回:0
调用者
名称描述
map_tboot_pages