blob: 7c6697d13cb2e4ddfdcbcdd3362af57e285b6334 [file] [log] [blame]
Jens Axboe99f15d82022-05-25 05:59:19 -06001// 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))