Lines Matching defs:opcode
863 /* opcode allocated if it needs to store data for async defer */
865 u8 opcode;
916 /* opcode is not supported by this kernel */
918 /* set if opcode supports polled "wait" */
1434 const struct io_op_def *def = &io_op_defs[req->opcode];
1977 * A request might get retired back into the request caches even before opcode
2067 if (link && link->opcode == IORING_OP_LINK_TIMEOUT) {
2113 if (link && link->opcode == IORING_OP_LINK_TIMEOUT) {
3015 if (req->opcode == IORING_OP_READ_FIXED ||
3016 req->opcode == IORING_OP_WRITE_FIXED) {
3321 u8 opcode = req->opcode;
3324 if (opcode == IORING_OP_READ_FIXED || opcode == IORING_OP_WRITE_FIXED) {
3333 if (opcode == IORING_OP_READ || opcode == IORING_OP_WRITE) {
3455 WARN_ON_ONCE(!io_op_defs[req->opcode].async_size);
3456 req->async_data = kmalloc(io_op_defs[req->opcode].async_size, GFP_KERNEL);
3464 if (!force && !io_op_defs[req->opcode].needs_async_setup)
5399 if (req->opcode == IORING_OP_POLL_ADD)
5406 if (req->opcode == IORING_OP_POLL_ADD)
5597 if (req->opcode == IORING_OP_POLL_ADD)
5602 trace_io_uring_task_add(req->ctx, req->opcode, req->user_data, mask);
5805 const struct io_op_def *def = &io_op_defs[req->opcode];
5821 if ((req->opcode == IORING_OP_RECVMSG) &&
5850 trace_io_uring_poll_arm(ctx, req, req->opcode, req->user_data,
5894 if (poll_only && req->opcode != IORING_OP_POLL_ADD)
6286 if (link->last->opcode == IORING_OP_LINK_TIMEOUT)
6492 switch (req->opcode) {
6563 printk_once(KERN_WARNING "io_uring: unhandled opcode %d\n",
6564 req->opcode);
6570 if (!io_op_defs[req->opcode].needs_async_setup)
6577 switch (req->opcode) {
6589 printk_once(KERN_WARNING "io_uring: prep_async() bad opcode %d\n",
6590 req->opcode);
6682 switch (req->opcode) {
6696 switch (req->opcode) {
6754 switch (req->opcode) {
7138 * Check SQE restrictions (opcode and flags).
7149 if (!test_bit(req->opcode, ctx->restrictions.sqe_op))
7172 req->opcode = READ_ONCE(sqe->opcode);
7183 if (unlikely(req->opcode >= IORING_OP_LAST))
7189 !io_op_defs[req->opcode].buffer_select)
7209 io_op_defs[req->opcode].plug) {
7214 if (io_op_defs[req->opcode].needs_file) {
7265 trace_io_uring_submit_sqe(ctx, req, req->opcode, req->user_data,
10245 seq_printf(m, " op=%d, task_works=%d\n", req->opcode,
10611 switch (res[i].opcode) {
10927 static int __io_uring_register(struct io_ring_ctx *ctx, unsigned opcode,
10943 opcode = array_index_nospec(opcode, IORING_REGISTER_LAST);
10944 if (!test_bit(opcode, ctx->restrictions.register_op))
10948 if (io_register_op_must_quiesce(opcode)) {
10954 switch (opcode) {
10984 if (opcode == IORING_REGISTER_EVENTFD_ASYNC)
11059 if (io_register_op_must_quiesce(opcode)) {
11067 SYSCALL_DEFINE4(io_uring_register, unsigned int, fd, unsigned int, opcode,
11074 if (opcode >= IORING_REGISTER_LAST)
11090 ret = __io_uring_register(ctx, opcode, arg, nr_args);
11092 trace_io_uring_register(ctx, opcode, ctx->nr_user_files, ctx->nr_user_bufs,
11109 BUILD_BUG_SQE_ELEM(0, __u8, opcode);