Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 
0003 #include <linux/io_uring_types.h>
0004 
0005 struct io_cancel_data {
0006     struct io_ring_ctx *ctx;
0007     union {
0008         u64 data;
0009         struct file *file;
0010     };
0011     u32 flags;
0012     int seq;
0013 };
0014 
0015 
0016 int io_async_cancel_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe);
0017 int io_async_cancel(struct io_kiocb *req, unsigned int issue_flags);
0018 
0019 int io_try_cancel(struct io_uring_task *tctx, struct io_cancel_data *cd,
0020           unsigned int issue_flags);
0021 void init_hash_table(struct io_hash_table *table, unsigned size);
0022 
0023 int io_sync_cancel(struct io_ring_ctx *ctx, void __user *arg);