Function report |
Source Code:fs\io_uring.c |
Create Date:2022-07-28 20:22:11 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:For files that don't have ->read_iter() and ->write_iter(), handle them* by looping over ->read() or ->write() manually.
Proto:static ssize_t loop_rw_iter(int rw, struct file *file, struct kiocb *kiocb, struct iov_iter *iter)
Type:ssize_t
Parameter:
Type | Parameter | Name |
---|---|---|
int | rw | |
struct file * | file | |
struct kiocb * | kiocb | |
struct iov_iter * | iter |
1709 | ret = 0 |
1716 | If ki_flags & IOCB_HIPRI Then Return -EOPNOTSUPP |
1718 | If ki_flags & IOCB_NOWAIT Then Return -EAGAIN |
1721 | When iov_iter_count(iter) cycle |
1725 | If Not iov_iter_is_bvec(iter) Then |
1726 | iovec = iov_iter_iovec(iter) |
1727 | Else |
1735 | If rw == generic data direction definitions Then |
1738 | Else |
1743 | If iov_iter_is_bvec(iter) Then kunmap(bv_page) |
1746 | If nr < 0 Then |
1752 | If nr != Must be size_t (1003.1g) Then Break |
1754 | iov_iter_advance(iter, nr) |
1757 | Return ret |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |