函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:arch_vma_access_permitted

函数原型:static inline bool arch_vma_access_permitted(struct vm_area_struct *vma, bool write, bool execute, bool foreign)

返回类型:bool

参数:

类型参数名称
struct vm_area_struct *vma
boolwrite
boolexecute
boolforeign
335  如果execute则返回:true
338  如果foreignWe only want to enforce protection keys on the current process* because we effectively have no access to PKRU for other* processes or any way to tell *which * PKRU in a threaded* process we could use则返回:true
340  返回:__pkru_allows_pkey(vma_pkey(vma), write)
调用者
名称描述
check_vma_flags
vma_permits_fault
handle_mm_faultBy the time we get here, we already hold the mm semaphore* The mmap_sem may have been released depending on flags and our* return value. See filemap_fault() and __lock_page_or_retry().