Lines Matching refs:sqe
45 static int __io_openat_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe)
51 if (unlikely(sqe->buf_index))
60 open->dfd = READ_ONCE(sqe->fd);
61 fname = u64_to_user_ptr(READ_ONCE(sqe->addr));
69 open->file_slot = READ_ONCE(sqe->file_index);
80 int io_openat_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe)
83 u64 mode = READ_ONCE(sqe->len);
84 u64 flags = READ_ONCE(sqe->open_flags);
87 return __io_openat_prep(req, sqe);
90 int io_openat2_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe)
97 how = u64_to_user_ptr(READ_ONCE(sqe->addr2));
98 len = READ_ONCE(sqe->len);
106 return __io_openat_prep(req, sqe);
202 int io_close_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe)
206 if (sqe->off || sqe->addr || sqe->len || sqe->rw_flags || sqe->buf_index)
211 close->fd = READ_ONCE(sqe->fd);
212 close->file_slot = READ_ONCE(sqe->file_index);