函数逻辑报告

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

函数名称:__pkru_allows_pkey

函数原型:static inline bool __pkru_allows_pkey(u16 pkey, bool write)

返回类型:bool

参数:

类型参数名称
u16pkey
boolwrite
1412  pkru等于read_pkru()
1414  如果非__pkru_allows_read(pkru, pkey)则返回:false
1416  如果write且非__pkru_allows_write(pkru, pkey)则返回:false
1419  返回:true
调用者
名称描述
arch_vma_access_permitted
__pte_access_permitted'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.