xref: /openbmc/linux/io_uring/cancel.h (revision 38513c46)
1 // SPDX-License-Identifier: GPL-2.0
2 
3 int io_async_cancel_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe);
4 int io_async_cancel(struct io_kiocb *req, unsigned int issue_flags);
5 
6 int io_try_cancel(struct io_kiocb *req, struct io_cancel_data *cd);
7 void init_hash_table(struct io_hash_bucket *hash_table, unsigned size);
8 
9 struct io_hash_bucket {
10 	spinlock_t		lock;
11 	struct hlist_head	list;
12 } ____cacheline_aligned_in_smp;
13