mirror of
https://github.com/torvalds/linux.git
synced 2025-04-09 13:44:53 +00:00

There is now an io_uring private part of cmd async_data, move saved sqe into it. Drivers are accessing it via struct io_uring_cmd::cmd. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/ecbe078dd57acefdbc4366d083327086c0879378.1743357121.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
26 lines
761 B
C
26 lines
761 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
#include <linux/io_uring/cmd.h>
|
|
#include <linux/io_uring_types.h>
|
|
|
|
struct io_async_cmd {
|
|
struct io_uring_cmd_data data;
|
|
struct iou_vec vec;
|
|
struct io_uring_sqe sqes[2];
|
|
};
|
|
|
|
int io_uring_cmd(struct io_kiocb *req, unsigned int issue_flags);
|
|
int io_uring_cmd_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe);
|
|
void io_uring_cmd_cleanup(struct io_kiocb *req);
|
|
|
|
bool io_uring_try_cancel_uring_cmd(struct io_ring_ctx *ctx,
|
|
struct io_uring_task *tctx, bool cancel_all);
|
|
|
|
void io_cmd_cache_free(const void *entry);
|
|
|
|
int io_uring_cmd_import_fixed_vec(struct io_uring_cmd *ioucmd,
|
|
const struct iovec __user *uvec,
|
|
size_t uvec_segs,
|
|
int ddir, struct iov_iter *iter,
|
|
unsigned issue_flags);
|