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:vfs_writev

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

Type:ssize_t

Parameter:

TypeParameterName
struct file *file
const struct iovec __user *vec
unsigned longvlen
loff_t *pos
rwf_tflags
1008  iov = iovstack
1012  ret = mport_iovec() - Copy an array of &struct iovec from userspace* into the kernel, check that it is valid, and initialize a new* &struct iov_iter iterator to access it.*@type: One of %READ or %WRITE.*@uvector: Pointer to the userspace array.
1013  If ret >= 0 Then
1014  file_start_write(file)
1015  ret = do_iter_write(file, & iter, pos, flags)
1016  file_end_write(file)
1017  kfree(iov)
1019  Return ret
Caller
NameDescribe
do_writev
do_pwritev