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 it by hand, with file-ops

Proto:static ssize_t do_loop_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
704  ret = 0
706  If flags & ~high priority request, poll if possible Then Return -EOPNOTSUPP
709  When iov_iter_count(iter) cycle
710  iovec = iov_iter_iovec(iter)
716  Else
721  If nr < 0 Then
722  If Not ret Then ret = nr
724  Break
726  ret += nr
727  If nr != Must be size_t (1003.1g) Then Break
729  iov_iter_advance(iter, nr)
732  Return ret
Caller
NameDescribe
do_iter_read
do_iter_write