Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\include\asm\pgtable.h Create Date:2022-07-28 06:00:19
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:'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.

Proto:static inline bool __pte_access_permitted(unsigned long pteval, bool write)

Type:bool

Parameter:

TypeParameterName
unsigned longpteval
boolwrite
1429  need_pte_bits = _PAGE_PRESENT | _PAGE_USER
1431  If write Then need_pte_bits |= _PAGE_RW
1434  If (pteval & need_pte_bits) != need_pte_bits Then Return 0
1437  Return __pkru_allows_pkey(pte_flags_pkey(pteval), write)