函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\mm.h Create Date:2022-07-27 06:44:52
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

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

函数原型:static inline int vm_fault_to_errno(vm_fault_t vm_fault, int foll_flags)

返回类型:int

参数:

类型参数名称
vm_fault_tvm_fault
intfoll_flags
2612  如果vm_fault按位与VM_FAULT_OOM则返回:负ENOMEM
2614  如果vm_fault按位与VM_FAULT_HWPOISON按位或VM_FAULT_HWPOISON_LARGE的值则返回:如果foll_flags按位与check page is hwpoisoned 则负EHWPOISON否则负EFAULT
2616  如果vm_fault按位与VM_FAULT_SIGBUS按位或VM_FAULT_SIGSEGV的值则返回:负EFAULT
2618  返回:0
调用者
名称描述
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