Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:make_huge_pte

Proto:static pte_t make_huge_pte(struct vm_area_struct *vma, struct page *page, int writable)

Type:pte_t

Parameter:

TypeParameterName
struct vm_area_struct *vma
struct page *page
intwritable
3250  If writable Then
3251  entry = huge_pte_mkwrite(huge_pte_mkdirty(mk_huge_pte(page, Access permissions of this VMA. )))
3253  Else
3254  entry = huge_pte_wrprotect(mk_huge_pte(page, Access permissions of this VMA. ))
3257  entry = pte_mkyoung(entry)
3258  entry = pte_mkhuge(entry)
3259  entry = arch_make_huge_pte(entry, vma, page, writable)
3261  Return entry
Caller
NameDescribe
hugetlb_cowHugetlb_cow() should be called with page lock of the original hugepage held.* Called with hugetlb_instantiation_mutex held and pte_page locked so we* cannot race with other handlers or page migration.
hugetlb_no_page
hugetlb_mcopy_atomic_pteUsed by userfaultfd UFFDIO_COPY. Based on mcopy_atomic_pte with* modifications for huge pages.