Loading...
1// SPDX-License-Identifier: GPL-2.0
2
3int io_uring_cmd(struct io_kiocb *req, unsigned int issue_flags);
4int io_uring_cmd_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe);
5
6bool io_uring_try_cancel_uring_cmd(struct io_ring_ctx *ctx,
7 struct io_uring_task *tctx, bool cancel_all);
1// SPDX-License-Identifier: GPL-2.0
2
3int io_uring_cmd(struct io_kiocb *req, unsigned int issue_flags);
4int io_uring_cmd_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe);
5int io_uring_cmd_prep_async(struct io_kiocb *req);
6
7/*
8 * The URING_CMD payload starts at 'cmd' in the first sqe, and continues into
9 * the following sqe if SQE128 is used.
10 */
11#define uring_cmd_pdu_size(is_sqe128) \
12 ((1 + !!(is_sqe128)) * sizeof(struct io_uring_sqe) - \
13 offsetof(struct io_uring_sqe, cmd))