函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:aio_setup_rw

函数原型:static ssize_t aio_setup_rw(int rw, const struct iocb *iocb, struct iovec **iovec, bool vectored, bool compat, struct iov_iter *iter)

返回类型:ssize_t

参数:

类型参数名称
intrw
const struct iocb *iocb
struct iovec **iovec
boolvectored
boolcompat
struct iov_iter *iter
1484  __userbuf等于读写操作对应的内存
1485  len等于需要读写的字节长度
1487  如果非vectored
1488  ret等于import_single_range(rw, buf, len, * iovec, iter)
1489  * iovec = NULL
1490  返回:ret
1493  如果compat则返回:compat_import_iovec(rw, buf, len, UIO_MAXIOV shall be at least 16 1003.1g (5.4.1.1), iovec, iter)
1497  返回: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.
调用者
名称描述
aio_read
aio_write