函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:pmd_none

函数原型:static inline int pmd_none(pmd_t pmd)

返回类型:int

参数:

类型参数名称
pmd_tpmd
788  val等于native_pmd_val(pmd)
789  返回:val按位与_PAGE_KNL_ERRATUM_MASK的反的值恒等于0
调用者
名称描述
follow_pmd_mask
__pte_alloc
__pte_alloc_kernel
__do_faultThe mmap_sem must have been held on entry, and may have been* released depending on flags and vma->vm_ops->fault() return value.* See filemap_fault() and __lock_page_retry().
pte_alloc_one_map
alloc_set_ptealloc_set_pte - setup new PTE entry for given page and add reverse page* mapping
do_fault_arounddo_fault_around() tries to map few pages around the fault address. The hope* is that the pages will be needed soon and this will lower the number of* faults to handle.* It uses vm_ops->map_pages() to map the pages, which skips the page if it's
handle_pte_faultThese routines also need to handle stuff like marking pages dirty* and/or accessed for architectures that don't do it in hardware (most* RISC architectures)
__handle_mm_faultBy the time we get here, we already hold the mm semaphore* The mmap_sem may have been released depending on flags and our* return value. See filemap_fault() and __lock_page_or_retry().
__follow_pte_pmd
pmd_none_or_clear_bad_unless_trans_hugeUsed when setting automatic NUMA hinting protection where it is* critical that a numa hinting PMD is not confused with a bad PMD.
get_old_pmd
walk_pmd_range
vmalloc_to_pageWalk a vmap address to the struct page it maps.
vmemmap_pmd_populate
shadow_mapped
zero_pmd_populate
kasan_free_pmd
__do_huge_pmd_anonymous_page
set_huge_zero_pageCaller must hold page table lock.
do_huge_pmd_anonymous_page
insert_pfn_pmd
move_huge_pmd
collapse_huge_page
__mcopy_atomic
hmm_vma_walk_pmd
userfaultfd_must_waitVerify the pagetables are still not ok after having reigstered into* the fault_pending_wqh to avoid userland having to UFFDIO_WAKE any* userfault that has already been resolved, if userfaultfd_read and* UFFDIO_COPY|ZEROPAGE are being run simultaneously on
is_swap_pmd
pmd_none_or_clear_bad
pmd_none_or_trans_huge_or_clear_badThis function is meant to be used by sites walking pagetables with* the mmap_sem hold in read mode to protect against MADV_DONTNEED and* transhuge page faults