函数逻辑报告

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

函数名称:do_iter_read

函数原型:static ssize_t do_iter_read(struct file *file, struct iov_iter *iter, loff_t *pos, rwf_t flags)

返回类型:ssize_t

参数:

类型参数名称
struct file *file
struct iov_iter *iter
loff_t *pos
rwf_tflags
918  ret等于0
920  如果非f_mode按位与le is open for reading 的值则返回:负EBADF
922  如果非f_mode按位与Has read method(s) 的值则返回:负EINVAL
925  tot_len等于iov_iter_count(iter)
926  如果非tot_len则转到:out
928  ret等于rw_verify_area(generic data direction definitions , file, pos, tot_len)
929  如果ret小于0则返回:ret
932  如果read_iterret等于do_iter_readv_writev(file, iter, pos, generic data direction definitions , flags)
934  否则ret等于Do it by hand, with file-ops
936  out :
937  如果ret大于等于0则snotify_access - file was read
939  返回:ret
调用者
名称描述
vfs_iter_read
vfs_readv
compat_readv