xref: /openbmc/linux/io_uring/uring_cmd.h (revision be2b81b5)
1 // SPDX-License-Identifier: GPL-2.0
2 
3 int io_uring_cmd(struct io_kiocb *req, unsigned int issue_flags);
4 int io_uring_cmd_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe);
5 int 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))
14