Function report |
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 activity | Download SCCT | Chinese |
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:
| Type | Parameter | Name |
|---|---|---|
| unsigned long | pteval | |
| bool | write |
| 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) |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |