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_writev

Proto:static ssize_t do_writev(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
1049  f = fdget_pos(fd)
1050  ret = -EBADF
1052  If file Then
1053  ppos = le_ppos returns &file->f_pos or NULL if file is stream
1054  If ppos Then
1055  pos = ppos
1056  ppos = pos
1058  ret = vfs_writev(file, vec, vlen, ppos, flags)
1059  If ret >= 0 && ppos Then f_pos = pos
1061  fdput_pos(f)
1064  If ret > 0 Then add_wchar(current process, ret)
1066  inc_syscw(current process)
1067  Return ret
Caller
NameDescribe
SYSCALL_DEFINE3
SYSCALL_DEFINE6