Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\hmm.c Create Date:2022-07-28 16:37:06
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:pte_to_hmm_pfn_flags

Proto:static inline uint64_t pte_to_hmm_pfn_flags(struct hmm_range *range, pte_t pte)

Type:uint64_t

Parameter:

TypeParameterName
struct hmm_range *range
pte_tpte
257  If pte_none(pte) || Not pte_present(pte) || Technically a PTE can be PROTNONE even when not doing NUMA balancing but* the only case the kernel cares is for NUMA balancing and is only ever set* when the VMA is accessible. For PROT_NONE VMAs, the PTEs are not marked Then Return 0
259  Return If pte_write(pte) Then flags[ pfn is valid. It has, at least, read permission.] | flags[ CPU page table has write permission set] Else flags[ pfn is valid. It has, at least, read permission.]
Caller
NameDescribe
hmm_vma_handle_pte
hmm_vma_walk_hugetlb_entry