函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:do_iter_readv_writev

函数原型:static ssize_t do_iter_readv_writev(struct file *filp, struct iov_iter *iter, loff_t *ppos, int type, rwf_t flags)

返回类型:ssize_t

参数:

类型参数名称
struct file *filp
struct iov_iter *iter
loff_t *ppos
inttype
rwf_tflags
684  init_sync_kiocb( & kiocb, filp)
685  ret等于kiocb_set_rw_flags( & kiocb, flags)
686  如果ret则返回:ret
688  文件偏移等于如果pposppos否则0
690  如果type恒等于generic data direction definitions ret等于call_read_iter(filp, & kiocb, iter)
692  否则ret等于call_write_iter(filp, & kiocb, iter)
694  BUG_ON(ret == - cb queued, will get completion event )
695  如果pposppos等于文件偏移
697  返回:ret
调用者
名称描述
do_iter_read
do_iter_write