Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:do_readv

Proto:static ssize_t do_readv(unsigned long fd, const struct iovec __user *vec, unsigned long vlen, rwf_t flags)

Type:ssize_t

Parameter:

TypeParameterName
unsigned longfd
const struct iovec __user *vec
unsigned longvlen
rwf_tflags
1025  f = fdget_pos(fd)
1026  ret = -EBADF
1028  If file Then
1029  ppos = le_ppos returns &file->f_pos or NULL if file is stream
1030  If ppos Then
1031  pos = ppos
1032  ppos = pos
1034  ret = vfs_readv(file, vec, vlen, ppos, flags)
1035  If ret >= 0 && ppos Then f_pos = pos
1037  fdput_pos(f)
1040  If ret > 0 Then add_rchar(current process, ret)
1042  inc_syscr(current process)
1043  Return ret
Caller
NameDescribe
SYSCALL_DEFINE3
SYSCALL_DEFINE6