Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:do_iter_readv_writev

Proto:static ssize_t do_iter_readv_writev(struct file *filp, struct iov_iter *iter, loff_t *ppos, int type, rwf_t flags)

Type:ssize_t

Parameter:

TypeParameterName
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  If ret Then Return ret
688  The 'ki_filp' pointer is shared in a union for aio = If ppos Then ppos Else 0
690  If type == generic data direction definitions Then ret = call_read_iter(filp, & kiocb, iter)
692  Else ret = call_write_iter(filp, & kiocb, iter)
694  BUG_ON(ret == - cb queued, will get completion event )
695  If ppos Then ppos = The 'ki_filp' pointer is shared in a union for aio
697  Return ret
Caller
NameDescribe
do_iter_read
do_iter_write