Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:aio_setup_rw

Proto:static ssize_t aio_setup_rw(int rw, const struct iocb *iocb, struct iovec **iovec, bool vectored, bool compat, struct iov_iter *iter)

Type:ssize_t

Parameter:

TypeParameterName
intrw
const struct iocb *iocb
struct iovec **iovec
boolvectored
boolcompat
struct iov_iter *iter
1484  __user * buf = aio_buf
1485  len = aio_nbytes
1487  If Not vectored Then
1488  ret = import_single_range(rw, buf, len, * iovec, iter)
1489  * iovec = NULL
1490  Return ret
1493  If compat Then Return compat_import_iovec(rw, buf, len, UIO_MAXIOV shall be at least 16 1003.1g (5.4.1.1), iovec, iter)
1497  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
aio_read
aio_write