Lines Matching refs:nop
28 struct io_nop *nop = io_kiocb_to_cmd(req, struct io_nop); in io_nop_prep() local
30 nop->flags = READ_ONCE(sqe->nop_flags); in io_nop_prep()
31 if (nop->flags & ~NOP_FLAGS) in io_nop_prep()
34 if (nop->flags & IORING_NOP_INJECT_RESULT) in io_nop_prep()
35 nop->result = READ_ONCE(sqe->len); in io_nop_prep()
37 nop->result = 0; in io_nop_prep()
38 if (nop->flags & IORING_NOP_FILE) in io_nop_prep()
39 nop->fd = READ_ONCE(sqe->fd); in io_nop_prep()
41 nop->fd = -1; in io_nop_prep()
42 if (nop->flags & IORING_NOP_FIXED_BUFFER) in io_nop_prep()
43 nop->buffer = READ_ONCE(sqe->buf_index); in io_nop_prep()
45 nop->buffer = -1; in io_nop_prep()
51 struct io_nop *nop = io_kiocb_to_cmd(req, struct io_nop); in io_nop() local
52 int ret = nop->result; in io_nop()
54 if (nop->flags & IORING_NOP_FILE) { in io_nop()
55 if (nop->flags & IORING_NOP_FIXED_FILE) { in io_nop()
56 req->file = io_file_get_fixed(req, nop->fd, issue_flags); in io_nop()
59 req->file = io_file_get_normal(req, nop->fd); in io_nop()
66 if (nop->flags & IORING_NOP_FIXED_BUFFER) { in io_nop()
72 node = io_rsrc_node_lookup(&ctx->buf_table, nop->buffer); in io_nop()
82 io_req_set_res(req, nop->result, 0); in io_nop()