Lines Matching refs:sqe

98 static inline void io_uring_sqe_set_data(struct io_uring_sqe *sqe, void *data)
100 sqe->user_data = (unsigned long) data;
108 static inline void io_uring_prep_rw(int op, struct io_uring_sqe *sqe, int fd,
112 memset(sqe, 0, sizeof(*sqe));
113 sqe->opcode = op;
114 sqe->fd = fd;
115 sqe->off = offset;
116 sqe->addr = (unsigned long) addr;
117 sqe->len = len;
120 static inline void io_uring_prep_readv(struct io_uring_sqe *sqe, int fd,
124 io_uring_prep_rw(IORING_OP_READV, sqe, fd, iovecs, nr_vecs, offset);
127 static inline void io_uring_prep_read_fixed(struct io_uring_sqe *sqe, int fd,
131 io_uring_prep_rw(IORING_OP_READ_FIXED, sqe, fd, buf, nbytes, offset);
134 static inline void io_uring_prep_writev(struct io_uring_sqe *sqe, int fd,
138 io_uring_prep_rw(IORING_OP_WRITEV, sqe, fd, iovecs, nr_vecs, offset);
141 static inline void io_uring_prep_write_fixed(struct io_uring_sqe *sqe, int fd,
145 io_uring_prep_rw(IORING_OP_WRITE_FIXED, sqe, fd, buf, nbytes, offset);
148 static inline void io_uring_prep_poll_add(struct io_uring_sqe *sqe, int fd,
151 memset(sqe, 0, sizeof(*sqe));
152 sqe->opcode = IORING_OP_POLL_ADD;
153 sqe->fd = fd;
157 sqe->poll_events = poll_mask;
160 static inline void io_uring_prep_poll_remove(struct io_uring_sqe *sqe,
163 memset(sqe, 0, sizeof(*sqe));
164 sqe->opcode = IORING_OP_POLL_REMOVE;
165 sqe->addr = (unsigned long) user_data;
168 static inline void io_uring_prep_fsync(struct io_uring_sqe *sqe, int fd,
171 memset(sqe, 0, sizeof(*sqe));
172 sqe->opcode = IORING_OP_FSYNC;
173 sqe->fd = fd;
174 sqe->fsync_flags = fsync_flags;
177 static inline void io_uring_prep_nop(struct io_uring_sqe *sqe)
179 memset(sqe, 0, sizeof(*sqe));
180 sqe->opcode = IORING_OP_NOP;