函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\read_write.c Create Date:2022-07-29 10:31:25
Last Modify:2020-03-18 10:18:51 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:do_iter_write

函数原型:static ssize_t do_iter_write(struct file *file, struct iov_iter *iter, loff_t *pos, rwf_t flags)

返回类型:ssize_t

参数:

类型参数名称
struct file *file
struct iov_iter *iter
loff_t *pos
rwf_tflags
955  ret等于0
957  如果非f_mode按位与le is open for writing 的值则返回:负EBADF
959  如果非f_mode按位与Has write method(s) 的值则返回:负EINVAL
962  tot_len等于iov_iter_count(iter)
963  如果非tot_len则返回:0
965  ret等于rw_verify_area(WRITE, file, pos, tot_len)
966  如果ret小于0则返回:ret
969  如果write_iterret等于do_iter_readv_writev(file, iter, pos, WRITE, flags)
971  否则ret等于Do it by hand, with file-ops
973  如果ret大于0则snotify_modify - file was modified
975  返回:ret
调用者
名称描述
vfs_iter_write
vfs_writev
compat_writev