函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\gup.c Create Date:2022-07-27 16:00:56
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:vma_permits_fault

函数原型:static bool vma_permits_fault(struct vm_area_struct *vma, unsigned int fault_flags)

返回类型:bool

参数:

类型参数名称
struct vm_area_struct *vma
unsigned intfault_flags
904  write等于非非fault_flags按位与Fault was a write access 的值
905  foreign等于非非fault_flags按位与aulting for non current tsk/mm 的值
906  vm_flags等于如果writeVM_WRITE否则currently active flags
908  如果非vm_flags按位与Flags, see mm.h. 的值则返回:false
918  如果非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)则返回:false
921  返回:true
调用者
名称描述
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