函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\include\asm\pgtable.h Create Date:2022-07-27 06:58:48
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:pmd_modify

函数原型:static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot)

返回类型:pmd_t

参数:

类型参数名称
pmd_tpmd
pgprot_tnewprot
619  val等于pmd_val(pmd), oldval等于val
621  val与等于_HPAGE_CHG_MASK
622  val或等于check_pgprot(newprot)按位与_HPAGE_CHG_MASK的反
623  val等于flip_protnone_guard(oldval, val, PHYSICAL_PMD_PAGE_MASK)
624  返回:__pmd(val)
调用者
名称描述
do_huge_pmd_numa_pageNUMA hinting page fault entry point for trans huge pmds
change_huge_pmdReturns* - 0 if PMD could not be locked* - 1 if PMD was locked but protections unchange and TLB flush unnecessary* - HPAGE_PMD_NR is protections changed and TLB flush necessary