Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:io_copy_iov

Proto:static int io_copy_iov(struct io_ring_ctx *ctx, struct iovec *dst, void __user *arg, unsigned index)

Type:int

Parameter:

TypeParameterName
struct io_ring_ctx *ctx
struct iovec *dst
void __user *arg
unsignedindex
4740  __user * src
4743  If compat Then
4744  __user * ciovs
4747  ciovs = arg
4748  If copy_from_user( & ciov, & ciovs[index], size of ciov ) Then Return -EFAULT
4751  BSD uses caddr_t (1003.1g requires void *) = u64_to_user_ptr((u64)iov_base)
4752  Must be size_t (1003.1g) = iov_len
4753  Return 0
4756  src = arg
4757  If copy_from_user(dst, & src[index], size of dst ) Then Return -EFAULT
4759  Return 0
Caller
NameDescribe
io_sqe_buffer_register