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_req_defer_prep
Proto:static int io_req_defer_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct io_kiocb * | req | |
| const struct io_uring_sqe * | sqe |
| 3094 | ret = 0 |
| 3097 | Case opcode == IORING_OP_NOP |
| 3098 | Break |
| 3099 | Case opcode == IORING_OP_READV |
| 3100 | Case opcode == IORING_OP_READ_FIXED |
| 3101 | ret = io_read_prep(req, sqe, true) |
| 3102 | Break |
| 3103 | Case opcode == IORING_OP_WRITEV |
| 3104 | Case opcode == IORING_OP_WRITE_FIXED |
| 3105 | ret = io_write_prep(req, sqe, true) |
| 3106 | Break |
| 3107 | Case opcode == IORING_OP_POLL_ADD |
| 3108 | ret = io_poll_add_prep(req, sqe) |
| 3109 | Break |
| 3110 | Case opcode == IORING_OP_POLL_REMOVE |
| 3111 | ret = io_poll_remove_prep(req, sqe) |
| 3112 | Break |
| 3113 | Case opcode == IORING_OP_FSYNC |
| 3114 | ret = io_prep_fsync(req, sqe) |
| 3115 | Break |
| 3116 | Case opcode == IORING_OP_SYNC_FILE_RANGE |
| 3117 | ret = io_prep_sfr(req, sqe) |
| 3118 | Break |
| 3119 | Case opcode == IORING_OP_SENDMSG |
| 3120 | ret = io_sendmsg_prep(req, sqe) |
| 3121 | Break |
| 3122 | Case opcode == IORING_OP_RECVMSG |
| 3123 | ret = io_recvmsg_prep(req, sqe) |
| 3124 | Break |
| 3125 | Case opcode == IORING_OP_CONNECT |
| 3126 | ret = io_connect_prep(req, sqe) |
| 3127 | Break |
| 3128 | Case opcode == IORING_OP_TIMEOUT |
| 3129 | ret = io_timeout_prep(req, sqe, false) |
| 3130 | Break |
| 3131 | Case opcode == IORING_OP_TIMEOUT_REMOVE |
| 3132 | ret = io_timeout_remove_prep(req, sqe) |
| 3133 | Break |
| 3134 | Case opcode == IORING_OP_ASYNC_CANCEL |
| 3135 | ret = io_async_cancel_prep(req, sqe) |
| 3136 | Break |
| 3137 | Case opcode == IORING_OP_LINK_TIMEOUT |
| 3138 | ret = io_timeout_prep(req, sqe, true) |
| 3139 | Break |
| 3140 | Case opcode == IORING_OP_ACCEPT |
| 3141 | ret = io_accept_prep(req, sqe) |
| 3142 | Break |
| 3143 | Default |
| 3144 | Print a one-time message (analogous to WARN_ONCE() et al):(warning conditions "io_uring: unhandled opcode %d\n", opcode) |
| 3147 | Break |
| 3150 | Return ret |
| Name | Describe |
|---|---|
| io_req_defer | |
| io_submit_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 |