Function report | 
Source Code:fs\io_uring.c | 
Create Date:2022-07-28 20:22:16 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:io_timeout_prep
Proto:static int io_timeout_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe, bool is_timeout_link)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct io_kiocb * | req | |
| const struct io_uring_sqe * | sqe | |
| bool | is_timeout_link | 
| 2906 | If Value for the false possibility is greater at compile time(flags & _context is polled ) Then Return -EINVAL | 
| 2908 | If prio for the request || dex into fixed buffers, if used || uffer size or number of iovecs != 1 Then Return -EINVAL | 
| 2910 | If ffset into file && is_timeout_link Then Return -EINVAL | 
| 2912 | flags = READ_ONCE(timeout_flags) | 
| 2913 | If flags & ~sqe->timeout_flags Then Return -EINVAL | 
| 2916 | count = READ_ONCE(ffset into file ) | 
| 2918 | If Not io && io_alloc_async_ctx(req) Then Return -ENOMEM | 
| 2923 | flags |= imeout request | 
| 2925 | If get_timespec64( & ts, u64_to_user_ptr(pointer to buffer or iovecs )) Then Return -EFAULT | 
| 2928 | If flags & sqe->timeout_flags Then mode = Time value is absolute | 
| 2930 | Else mode = Time value is relative to now | 
| 2934 | Return 0 | 
| Name | Describe | 
|---|---|
| io_req_defer_prep | |
| 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  |