函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:'pteval' can come from a PTE, PMD or PUD. We only check* _PAGE_PRESENT, _PAGE_USER, and _PAGE_RW in here which are the* same value on all 3 types.

函数原型:static inline bool __pte_access_permitted(unsigned long pteval, bool write)

返回类型:bool

参数:

类型参数名称
unsigned longpteval
boolwrite
1429  need_pte_bits等于_PAGE_PRESENT按位或_PAGE_USER
1431  如果writeneed_pte_bits或等于_PAGE_RW
1434  如果pteval按位与need_pte_bits的值不等于need_pte_bits则返回:0
1437  返回:__pkru_allows_pkey(pte_flags_pkey(pteval), write)
调用者
名称描述
pte_access_permitted
pmd_access_permitted
pud_access_permitted