]> git.ipfire.org Git - thirdparty/linux.git/blob - io_uring/uring_cmd.h
Merge tag '6.4-rc-smb3-client-fixes-part1' of git://git.samba.org/sfrench/cifs-2.6
[thirdparty/linux.git] / io_uring / uring_cmd.h
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))