| 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:io_read
Proto:static int io_read(struct io_kiocb *req, struct io_kiocb **nxt, bool force_nonblock)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct io_kiocb * | req | |
| struct io_kiocb ** | nxt | |
| bool | force_nonblock | 
| 1828 | iovec = inline_vecs | 
| 1834 | ret = io_import_iovec(generic data direction definitions , req, & iovec, & iter) | 
| 1839 | If Not force_nonblock Then ki_flags &= ~IOCB_NOWAIT | 
| 1842 | result = 0 | 
| 1844 | If flags & linked sqes Then result = io_size | 
| 1853 | Go to copy_iov | 
| 1856 | iov_count = iov_iter_count( & iter) | 
| 1857 | ret = rw_verify_area(generic data direction definitions , file, & The 'ki_filp' pointer is shared in a union for aio , iov_count) | 
| 1858 | If Not ret Then | 
| 1863 | Else ret2 = For files that don't have ->read_iter() and ->write_iter(), handle them* by looping over ->read() or ->write() manually. | 
| 1867 | If Not force_nonblock || ret2 != -EAGAIN Then | 
| 1868 | kiocb_done(kiocb, ret2, nxt, in_async) | 
| 1869 | Else | 
| 1878 | out_free : | 
| 1880 | Return ret | 
| Name | Describe | 
|---|---|
| io_issue_sqe | 
| 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 |