Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:do_iter_write

Proto:static ssize_t do_iter_write(struct file *file, struct iov_iter *iter, loff_t *pos, rwf_t flags)

Type:ssize_t

Parameter:

TypeParameterName
struct file *file
struct iov_iter *iter
loff_t *pos
rwf_tflags
955  ret = 0
957  If Not (f_mode & le is open for writing ) Then Return -EBADF
959  If Not (f_mode & Has write method(s) ) Then Return -EINVAL
962  tot_len = iov_iter_count(iter)
963  If Not tot_len Then Return 0
965  ret = rw_verify_area(WRITE, file, pos, tot_len)
966  If ret < 0 Then Return ret
969  If write_iter Then ret = do_iter_readv_writev(file, iter, pos, WRITE, flags)
971  Else ret = Do it by hand, with file-ops
973  If ret > 0 Then snotify_modify - file was modified
975  Return ret
Caller
NameDescribe
vfs_iter_write
vfs_writev
compat_writev