函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\iov_iter.c Create Date:2022-07-27 07:21:18
Last Modify:2022-05-21 11:43:54 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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.

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

返回类型:ssize_t

参数:

类型参数名称
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  如果n小于0则
1682  如果p不等于iovkfree(p)
1684  * iov = NULL
1685  返回:n
1687  iov_iter_init(i, type, p, nr_segs, n)
1688  iov等于如果p恒等于iovNULL否则p
1689  返回:n
调用者
名称描述
vfs_writev
SYSCALL_DEFINE4
aio_setup_rw
io_import_iovec
process_vm_rwprocess_vm_rw - check iovecs before calling core routine*@pid: PID of process to read/write from/to*@lvec: iovec array specifying where to copy to/from locally*@liovcnt: size of lvec array*@rvec: iovec array specifying where to copy to/from in the other
sg_io
keyctl_instantiate_key_iovInstantiate a key with the specified multipart payload and link the key into* the destination keyring if one is given.* The caller must have the appropriate instantiation permit set for this to* work (see keyctl_assume_authority)
vfs_readv