xref: /linux/io_uring/waitid.h (revision b1a54551dd9ed5ef1763b97b35a0999ca002b95c)
1 // SPDX-License-Identifier: GPL-2.0
2 
3 #include "../kernel/exit.h"
4 
5 struct io_waitid_async {
6 	struct io_kiocb *req;
7 	struct wait_opts wo;
8 };
9 
10 int io_waitid_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe);
11 int io_waitid(struct io_kiocb *req, unsigned int issue_flags);
12 int io_waitid_cancel(struct io_ring_ctx *ctx, struct io_cancel_data *cd,
13 		     unsigned int issue_flags);
14 bool io_waitid_remove_all(struct io_ring_ctx *ctx, struct task_struct *task,
15 			  bool cancel_all);
16