函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:compat_writev

函数原型:static size_t compat_writev(struct file *file, const struct compat_iovec __user *vec, unsigned long vlen, loff_t *pos, rwf_t flags)

返回类型:size_t

参数:

类型参数名称
struct file *file
const struct compat_iovec __user *vec
unsigned longvlen
loff_t *pos
rwf_tflags
1288  iov等于iovstack
1292  ret等于compat_import_iovec(WRITE, vec, vlen, UIO_MAXIOV shall be at least 16 1003.1g (5.4.1.1), & iov, & iter)
1293  如果ret大于等于0则
1294  file_start_write(file)
1295  ret等于do_iter_write(file, & iter, pos, flags)
1296  file_end_write(file)
1297  释放内存
1299  如果ret大于0则add_wchar(当前进程, ret)
1301  inc_syscw(当前进程)
1302  返回:ret
调用者
名称描述
do_compat_writev
do_compat_pwritev64