]>
git.proxmox.com Git - mirror_ubuntu-kernels.git/blob - io_uring/poll.h
1 // SPDX-License-Identifier: GPL-2.0
3 #include "alloc_cache.h"
13 struct wait_queue_head
*head
;
15 struct wait_queue_entry wait
;
21 struct io_cache_entry cache
;
23 struct io_poll
*double_poll
;
26 int io_poll_add_prep(struct io_kiocb
*req
, const struct io_uring_sqe
*sqe
);
27 int io_poll_add(struct io_kiocb
*req
, unsigned int issue_flags
);
29 int io_poll_remove_prep(struct io_kiocb
*req
, const struct io_uring_sqe
*sqe
);
30 int io_poll_remove(struct io_kiocb
*req
, unsigned int issue_flags
);
32 struct io_cancel_data
;
33 int io_poll_cancel(struct io_ring_ctx
*ctx
, struct io_cancel_data
*cd
,
34 unsigned issue_flags
);
35 int io_arm_poll_handler(struct io_kiocb
*req
, unsigned issue_flags
);
36 bool io_poll_remove_all(struct io_ring_ctx
*ctx
, struct task_struct
*tsk
,
39 void io_apoll_cache_free(struct io_cache_entry
*entry
);