Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\gup.c Create Date:2022-07-28 14:35:04
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:vma_permits_fault

Proto:static bool vma_permits_fault(struct vm_area_struct *vma, unsigned int fault_flags)

Type:bool

Parameter:

TypeParameterName
struct vm_area_struct *vma
unsigned intfault_flags
904  write = Not Not (fault_flags & Fault was a write access )
905  foreign = Not Not (fault_flags & aulting for non current tsk/mm )
906  vm_flags = If write Then VM_WRITE Else currently active flags
908  If Not (vm_flags & Flags, see mm.h. ) Then Return false
918  If Not arch_vma_access_permitted(vma, write, TSC's on different sockets may be reset asynchronously.* This may cause the TSC ADJUST value on socket 0 to be NOT 0., foreign) Then Return false
921  Return true
Caller
NameDescribe
fixup_user_faultxup_user_fault() - manually resolve a user page fault*@tsk: the task_struct to use for page fault accounting, or* NULL if faults are not to be recorded