函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\mman.h Create Date:2022-07-27 07:26:33
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:This is called from mprotect(). PROT_GROWSDOWN and PROT_GROWSUP have* already been masked out.* Returns true if the prot flags are valid

函数原型:static inline bool arch_validate_prot(unsigned long prot, unsigned long addr)

返回类型:bool

参数:

类型参数名称
unsigned longprot
unsigned longaddr
97  返回:prot按位与page can be read 按位或page can be written 按位或page can be executed 按位或page may be used for atomic ops 的值的反的值恒等于0
调用者
名称描述
do_mprotect_pkeypkey==-1 when doing a legacy mprotect()