Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:userfault_msg

Proto:static inline struct uffd_msg userfault_msg(unsigned long address, unsigned int flags, unsigned long reason, unsigned int features)

Type:struct uffd_msg

Parameter:

TypeParameterName
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  If flags & Fault was a write access Then flags |= If this was a write fault
208  If reason & wrprotect pages tracking Then flags |= If reason is VM_UFFD_WP
217  If features & UFFD_FEATURE_THREAD_ID Then ptid = task_pid_vnr(current process)
219  Return msg
Caller
NameDescribe
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