Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\mman.h Create Date:2022-07-28 06:29:10
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

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

Proto:static inline bool arch_validate_prot(unsigned long prot, unsigned long addr)

Type:bool

Parameter:

TypeParameterName
unsigned longprot
unsigned longaddr
97  Return (prot & ~( page can be read | page can be written | page can be executed | page may be used for atomic ops )) == 0
Caller
NameDescribe
do_mprotect_pkeypkey==-1 when doing a legacy mprotect()