Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:huge_pmd_set_accessed

Proto:void huge_pmd_set_accessed(struct vm_fault *vmf, pmd_t orig_pmd)

Type:void

Parameter:

TypeParameterName
struct vm_fault *vmf
pmd_torig_pmd
1181  write = FAULT_FLAG_xxx flags & Fault was a write access
1183  Page table lock.* Protects pte page table if 'pte'* is not NULL, otherwise pmd. = pmd_lock(The address space we belong to. , Pointer to pmd entry matching* the 'address' )
1184  If Value for the false possibility is greater at compile time(!pmd_same( * Pointer to pmd entry matching* the 'address' , orig_pmd)) Then Go to unlock
1187  entry = pmd_mkyoung(orig_pmd)
1188  If write Then entry = pmd_mkdirty(entry)
1190  haddr = Faulting virtual address & HPAGE_PMD_MASK
1191  If pmdp_set_access_flags(Target VMA , haddr, Pointer to pmd entry matching* the 'address' , entry, write) Then update_mmu_cache_pmd(Target VMA , Faulting virtual address , Pointer to pmd entry matching* the 'address' )
1194  unlock :
1195  spin_unlock(Page table lock.* Protects pte page table if 'pte'* is not NULL, otherwise pmd.)