函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:compat_readv

函数原型:static size_t compat_readv(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
1180  iov等于iovstack
1184  ret等于compat_import_iovec(generic data direction definitions , vec, vlen, UIO_MAXIOV shall be at least 16 1003.1g (5.4.1.1), & iov, & iter)
1185  如果ret大于等于0则
1186  ret等于do_iter_read(file, & iter, pos, flags)
1187  释放内存
1189  如果ret大于0则add_rchar(当前进程, ret)
1191  inc_syscr(当前进程)
1192  返回:ret
调用者
名称描述
do_compat_readv
do_compat_preadv64