函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\userfaultfd.c Create Date:2022-07-29 10:52:28
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:userfault_msg

函数原型:static inline struct uffd_msg userfault_msg(unsigned long address, unsigned int flags, unsigned long reason, unsigned int features)

返回类型:struct uffd_msg

参数:

类型参数名称
unsigned longaddress
unsigned intflags
unsigned longreason
unsigned intfeatures
196  msg_init( & msg)
197  event等于Start at 0x12 and not at 0 to be more strict against bugs.
198  address等于address
199  如果flags按位与Fault was a write access flags或等于If this was a write fault
208  如果reason按位与wrprotect pages tracking flags或等于If reason is VM_UFFD_WP
217  如果features按位与UFFD_FEATURE_THREAD_IDptid等于task_pid_vnr(当前进程)
219  返回:msg
调用者
名称描述
handle_userfaultThe locking rules involved in returning VM_FAULT_RETRY depending on* FAULT_FLAG_ALLOW_RETRY, FAULT_FLAG_RETRY_NOWAIT and* FAULT_FLAG_KILLABLE are not straightforward