函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\io_uring.c Create Date:2022-07-29 10:54:40
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:io_import_iovec

函数原型:static ssize_t io_import_iovec(int rw, struct io_kiocb *req, struct iovec **iovec, struct iov_iter *iter)

返回类型:ssize_t

参数:

类型参数名称
intrw
struct io_kiocb *req
struct iovec **iovec
struct iov_iter *iter
1666  __userbuf等于u64_to_user_ptr(addr)
1667  sqe_len等于len
1670  opcode等于opcode
1671  如果opcode恒等于IORING_OP_READ_FIXEDopcode恒等于IORING_OP_WRITE_FIXED
1672  * iovec = NULL
1673  返回:io_import_fixed(req, rw, iter)
1677  如果private则返回:负EINVAL
1680  如果io
1681  iorw等于rw
1683  iovec等于iov
1684  iov_iter_init(iter, rw, * iovec, nr_segs, size)
1685  如果iov恒等于fast_iov则 * iovec = NULL
1687  返回:size
1690  如果非has_user则返回:负EFAULT
1694  如果compat则返回:compat_import_iovec(rw, buf, sqe_len, UIO_MAXIOV shall be at least 16 1003.1g (5.4.1.1), iovec, iter)
1699  返回: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.
调用者
名称描述
io_read_prep
io_read
io_write_prep
io_write