Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:NOTE on FOLL_LONGTERM:* FOLL_LONGTERM indicates that the page will be held for an indefinite time* period _often_ under userspace control

Proto:static inline int vm_fault_to_errno(vm_fault_t vm_fault, int foll_flags)

Type:int

Parameter:

TypeParameterName
vm_fault_tvm_fault
intfoll_flags
2612  If vm_fault & VM_FAULT_OOM Then Return -ENOMEM
2614  If vm_fault & (VM_FAULT_HWPOISON | VM_FAULT_HWPOISON_LARGE) Then Return If foll_flags & check page is hwpoisoned Then -EHWPOISON Else -EFAULT
2616  If vm_fault & (VM_FAULT_SIGBUS | VM_FAULT_SIGSEGV) Then Return -EFAULT
2618  Return 0
Caller
NameDescribe
faultin_pagemmap_sem must be held on entry. If @nonblocking != NULL and* *@flags does not include FOLL_NOWAIT, the mmap_sem may be released.* If it is, *@nonblocking will be set to 0 and -EBUSY returned.
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
follow_hugetlb_page