Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:fault_in_pages_readable

Proto:static inline int fault_in_pages_readable(const char __user *uaddr, int size)

Type:int

Parameter:

TypeParameterName
const char __user *uaddr
intsize
583  __user * end = uaddr + size - 1
585  If Value for the false possibility is greater at compile time(size == 0) Then Return 0
588  If Value for the false possibility is greater at compile time(uaddr > end) Then Return -EFAULT
591  Do
592  If Value for the false possibility is greater at compile time(__get_user(c, uaddr) != 0) Then Return -EFAULT
594  uaddr += PAGE_SIZE
595  When uaddr <= end cycle
598  If (uaddr & PAGE_MASK) == (end & PAGE_MASK) Then
600  Return __get_user(c, end)
604  Return 0
Caller
NameDescribe
copy_page_from_iter_iovec
iov_iter_fault_in_readableFault in one or more iovecs of the given iov_iter, to a maximum length of* bytes. For each iovec, fault in each page that constitutes the iovec.* Return 0 on success, or non-zero if the memory could not be accessed (i.e.* because it is an invalid address).