函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\read_write.c Create Date:2022-07-29 10:31:25
Last Modify:2020-03-18 10:18:51 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:vfs_readv

函数原型:ssize_t vfs_readv(struct file *file, const struct iovec __user *vec, unsigned long vlen, loff_t *pos, rwf_t flags)

返回类型:ssize_t

参数:

类型参数名称
struct file *file
const struct iovec __user *vec
unsigned longvlen
loff_t *pos
rwf_tflags
991  iov等于iovstack
995  ret等于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.
996  如果ret大于等于0则
997  ret等于do_iter_read(file, & iter, pos, flags)
998  释放内存
1001  返回:ret
调用者
名称描述
do_readv
do_preadv
kernel_readv