函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\include\asm\pgtable.h Create Date:2022-07-27 06:58:47
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:pfn_pte

函数原型:static inline pte_t pfn_pte(unsigned long page_nr, pgprot_t pgprot)

返回类型:pte_t

参数:

类型参数名称
unsigned longpage_nr
pgprot_tpgprot
567  pfn等于page_nr左移PAGE_SHIFT determines the page size
568  pfn异或等于Entries that were set to PROT_NONE are inverted
569  pfn与等于Extracts the PFN from a (pte|pmd|pud|pgd)val_t of a 4KB page
570  返回:__pte(pfn | check_pgprot(pgprot))
调用者
名称描述
ioremap_pte_range
map_tboot_page
machine_kexec_page_table_set_one
is_crashed_pfn_valid
remap_pte_rangemaps a range of physical memory into the requested pages. the old* mappings are removed. any references to nonexistent pages results* in null mappings (currently treated as "copy-on-access")
do_anonymous_pageWe enter with non-exclusive mmap_sem (to exclude vma changes,* but allow concurrent faults), and pte mapped but not yet locked.* We return with mmap_sem still held, but pte unmapped and unlocked.
vmemmap_pte_populate
replace_pageplace_page - replace page in vma by new ksm page*@vma: vma that holds the pte pointing to page*@page: the page we are replacing by kpage*@kpage: the ksm page we replace page by*@orig_pte: the original value of the pte
zero_pte_populate
__split_huge_zero_page_pmd
mfill_zeropage_pte
pfn_t_pte