| Function report | 
| Source Code: fs\io_uring.c | Create Date:2022-07-28 20:22:12 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:io_write
Proto:static int io_write(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 | 
| 1915 | iovec = inline_vecs | 
| 1926 | If Not force_nonblock Then ki_flags &= ~IOCB_NOWAIT | 
| 1929 | result = 0 | 
| 1931 | If flags & linked sqes Then result = io_size | 
| 1940 | Go to copy_iov | 
| 1944 | If force_nonblock && Not (ki_flags & IOCB_DIRECT) && flags & gular file Then Go to copy_iov | 
| 1948 | iov_count = iov_iter_count( & iter) | 
| 1949 | ret = rw_verify_area(WRITE, file, & The 'ki_filp' pointer is shared in a union for aio , iov_count) | 
| 1950 | If Not ret Then | 
| 1960 | If flags & gular file Then | 
| 1966 | ki_flags |= IOCB_WRITE | 
| 1968 | If write_iter Then ret2 = call_write_iter(file, kiocb, & iter) | 
| 1970 | Else ret2 = For files that don't have ->read_iter() and ->write_iter(), handle them* by looping over ->read() or ->write() manually. | 
| 1976 | If ret2 == -EOPNOTSUPP && ki_flags & IOCB_NOWAIT Then ret2 = -EAGAIN | 
| 1978 | If Not force_nonblock || ret2 != -EAGAIN Then | 
| 1979 | kiocb_done(kiocb, ret2, nxt, in_async) | 
| 1980 | Else | 
| 1989 | out_free : | 
| 1991 | 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 |