Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\io_uring.c Create Date:2022-07-28 20:22:11
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:io_import_iovec

Proto:static ssize_t io_import_iovec(int rw, struct io_kiocb *req, struct iovec **iovec, struct iov_iter *iter)

Type:ssize_t

Parameter:

TypeParameterName
intrw
struct io_kiocb *req
struct iovec **iovec
struct iov_iter *iter
1666  __user * buf = u64_to_user_ptr(addr)
1667  sqe_len = len
1670  opcode = opcode
1671  If opcode == IORING_OP_READ_FIXED || opcode == IORING_OP_WRITE_FIXED Then
1672  * iovec = NULL
1673  Return io_import_fixed(req, rw, iter)
1677  If private Then Return -EINVAL
1680  If io Then
1681  iorw = rw
1683  iovec = iov
1684  iov_iter_init(iter, rw, * iovec, nr_segs, size)
1685  If iov == fast_iov Then * iovec = NULL
1687  Return size
1690  If Not has_user Then Return -EFAULT
1694  If compat Then Return compat_import_iovec(rw, buf, sqe_len, UIO_MAXIOV shall be at least 16 1003.1g (5.4.1.1), iovec, iter)
1699  Return 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.
Caller
NameDescribe
io_read_prep
io_read
io_write_prep
io_write