函数逻辑报告

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_writev

函数原型:static ssize_t vfs_writev(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
1008  iov等于iovstack
1012  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.
1013  如果ret大于等于0则
1014  file_start_write(file)
1015  ret等于do_iter_write(file, & iter, pos, flags)
1016  file_end_write(file)
1017  释放内存
1019  返回:ret
调用者
名称描述
do_writev
do_pwritev