Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:mport_iovec() - Copy an array of &struct iovec from userspace* into the kernel, check that it is valid, and initialize a new* &struct iov_iter iterator to access it.*@type: One of %READ or %WRITE.*@uvector: Pointer to the userspace array.

Proto:ssize_t import_iovec(int type, const struct iovec __user *uvector, unsigned nr_segs, unsigned fast_segs, struct iovec **iov, struct iov_iter *i)

Type:ssize_t

Parameter:

TypeParameterName
inttype
const struct iovec __user *uvector
unsignednr_segs
unsignedfast_segs
struct iovec **iov
struct iov_iter *i
1679  n = w_copy_check_uvector() - Copy an array of &struct iovec from userspace* into the kernel and check that it is valid.*@type: One of %CHECK_IOVEC_ONLY, %READ, or %WRITE.*@uvector: Pointer to the userspace array.
1681  If n < 0 Then
1682  If p != iov Then kfree(p)
1684  * iov = NULL
1685  Return n
1687  iov_iter_init(i, type, p, nr_segs, n)
1688  iov = If p == iov Then NULL Else p
1689  Return n
Caller
NameDescribe
vfs_writev
SYSCALL_DEFINE4
aio_setup_rw
io_import_iovec