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_pwritev

Proto:static ssize_t do_pwritev(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
1103  ret = -EBADF
1105  If pos < 0 Then Return -EINVAL
1108  f = fdget(fd)
1109  If file Then
1110  ret = -ESPIPE
1111  If f_mode & le can be accessed using pwrite Then ret = vfs_writev(file, vec, vlen, & pos, flags)
1113  fdput(f)
1116  If ret > 0 Then add_wchar(current process, ret)
1118  inc_syscw(current process)
1119  Return ret
Caller
NameDescribe
SYSCALL_DEFINE5
SYSCALL_DEFINE6