函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\huge_memory.c Create Date:2022-07-27 17:35:05
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Caller must hold page table lock.

函数原型: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)

返回类型:bool

参数:

类型参数名称
pgtable_tpgtable
struct mm_struct *mm
struct vm_area_struct *vma
unsigned longhaddr
pmd_t *pmd
struct page *zero_page
696  如果非pmd_none( * pmd)则返回:false
698  entry等于mk_pmd(zero_page, Access permissions of this VMA. )
699  entry等于pmd_mkhuge(entry)
700  如果pgtablepgtable_trans_huge_deposit(mm, pmd, pgtable)
702  set_pmd_at(mm, haddr, pmd, entry)
703  mm_inc_nr_ptes(mm)
704  返回:true
调用者
名称描述
do_huge_pmd_anonymous_page
copy_huge_pmd