Lines Matching defs:nop
12 #include "nop.h"
27 struct io_nop *nop = io_kiocb_to_cmd(req, struct io_nop);
29 nop->flags = READ_ONCE(sqe->nop_flags);
30 if (nop->flags & ~NOP_FLAGS)
33 if (nop->flags & IORING_NOP_INJECT_RESULT)
34 nop->result = READ_ONCE(sqe->len);
36 nop->result = 0;
37 if (nop->flags & IORING_NOP_FILE)
38 nop->fd = READ_ONCE(sqe->fd);
40 nop->fd = -1;
41 if (nop->flags & IORING_NOP_FIXED_BUFFER)
48 struct io_nop *nop = io_kiocb_to_cmd(req, struct io_nop);
49 int ret = nop->result;
51 if (nop->flags & IORING_NOP_FILE) {
52 if (nop->flags & IORING_NOP_FIXED_FILE) {
53 req->file = io_file_get_fixed(req, nop->fd, issue_flags);
56 req->file = io_file_get_normal(req, nop->fd);
63 if (nop->flags & IORING_NOP_FIXED_BUFFER) {
70 io_req_set_res(req, nop->result, 0);