Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Caller must hold page table lock.

Proto:static bool set_huge_zero_page(pgtable_t pgtable, struct mm_struct *mm, struct vm_area_struct *vma, unsigned long haddr, pmd_t *pmd, struct page *zero_page)

Type:bool

Parameter:

TypeParameterName
pgtable_tpgtable
struct mm_struct *mm
struct vm_area_struct *vma
unsigned longhaddr
pmd_t *pmd
struct page *zero_page
696  If Not pmd_none( * pmd) Then Return false
698  entry = mk_pmd(zero_page, Access permissions of this VMA. )
699  entry = pmd_mkhuge(entry)
700  If pgtable Then pgtable_trans_huge_deposit(mm, pmd, pgtable)
702  set_pmd_at(mm, haddr, pmd, entry)
703  mm_inc_nr_ptes(mm)
704  Return true
Caller
NameDescribe
do_huge_pmd_anonymous_page
copy_huge_pmd