Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__split_huge_zero_page_pmd

Proto:static void __split_huge_zero_page_pmd(struct vm_area_struct *vma, unsigned long haddr, pmd_t *pmd)

Type:void

Parameter:

TypeParameterName
struct vm_area_struct *vma
unsigned longhaddr
pmd_t *pmd
2109  mm = The address space we belong to.
2122  pmdp_huge_clear_flush(vma, haddr, pmd)
2124  pgtable = "address" argument so destroys page coloring of some arch
2125  pmd_populate(mm, & _pmd, pgtable)
2127  When i < HPAGE_PMD_NR cycle
2129  entry = pfn_pte(my_zero_pfn(haddr), Access permissions of this VMA. )
2130  entry = pte_mkspecial(entry)
2131  pte = pte_offset_map( & _pmd, haddr)
2132  VM_BUG_ON(!pte_none( * pte))
2133  set_pte_at(mm, haddr, pte, entry)
2134  pte_unmap(pte)
2136  smp_wmb()
2137  pmd_populate(mm, pmd, pgtable)
Caller
NameDescribe
__split_huge_pmd_locked