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_preadv

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

Type:ssize_t

Parameter:

TypeParameterName
unsigned longfd
const struct iovec __user *vec
unsigned longvlen
loff_tpos
rwf_tflags
1080  ret = -EBADF
1082  If pos < 0 Then Return -EINVAL
1085  f = fdget(fd)
1086  If file Then
1087  ret = -ESPIPE
1088  If f_mode & le can be accessed using pread Then ret = vfs_readv(file, vec, vlen, & pos, flags)
1090  fdput(f)
1093  If ret > 0 Then add_rchar(current process, ret)
1095  inc_syscr(current process)
1096  Return ret
Caller
NameDescribe
SYSCALL_DEFINE5
SYSCALL_DEFINE6