Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\read_write.c Create Date:2022-07-28 20:01:22
Last Modify:2020-03-18 10:18:51 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:do_iter_read

Proto:static ssize_t do_iter_read(struct file *file, struct iov_iter *iter, loff_t *pos, rwf_t flags)

Type:ssize_t

Parameter:

TypeParameterName
struct file *file
struct iov_iter *iter
loff_t *pos
rwf_tflags
918  ret = 0
920  If Not (f_mode & le is open for reading ) Then Return -EBADF
922  If Not (f_mode & Has read method(s) ) Then Return -EINVAL
925  tot_len = iov_iter_count(iter)
926  If Not tot_len Then Go to out
928  ret = rw_verify_area(generic data direction definitions , file, pos, tot_len)
929  If ret < 0 Then Return ret
932  If read_iter Then ret = do_iter_readv_writev(file, iter, pos, generic data direction definitions , flags)
934  Else ret = Do it by hand, with file-ops
936  out :
937  If ret >= 0 Then snotify_access - file was read
939  Return ret
Caller
NameDescribe
vfs_iter_read
vfs_readv
compat_readv