Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:compat_writev

Proto:static size_t compat_writev(struct file *file, const struct compat_iovec __user *vec, unsigned long vlen, loff_t *pos, rwf_t flags)

Type:size_t

Parameter:

TypeParameterName
struct file *file
const struct compat_iovec __user *vec
unsigned longvlen
loff_t *pos
rwf_tflags
1288  iov = iovstack
1292  ret = compat_import_iovec(WRITE, vec, vlen, UIO_MAXIOV shall be at least 16 1003.1g (5.4.1.1), & iov, & iter)
1293  If ret >= 0 Then
1294  file_start_write(file)
1295  ret = do_iter_write(file, & iter, pos, flags)
1296  file_end_write(file)
1297  kfree(iov)
1299  If ret > 0 Then add_wchar(current process, ret)
1301  inc_syscw(current process)
1302  Return ret
Caller
NameDescribe
do_compat_writev
do_compat_pwritev64