Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\iov_iter.c Create Date:2022-07-28 06:21:09
Last Modify:2022-05-21 11:43:54 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Fault 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).

Proto:int iov_iter_fault_in_readable(struct iov_iter *i, size_t bytes)

Type:int

Parameter:

TypeParameterName
struct iov_iter *i
size_tbytes
424  skip = iov_offset
429  If Not (* Bit 0 is the read/write bit, set if we're writing. * Bit 1 is the BVEC_FLAG_NO_REF bit, set if type is a bvec and * the caller isn't expecting to drop a page reference when done. & (ITER_BVEC | ITER_KVEC)) Then
430  iterate_iovec(i, bytes, v, iov, skip, ({err = fault_in_pages_readable( BSD uses caddr_t (1003.1g requires void *) , Must be size_t (1003.1g) );If Value for the false possibility is greater at compile time(err) Then Return err;0;}))
436  Return 0