summaryrefslogtreecommitdiff
path: root/io_uring/epoll.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2022-05-25 06:09:18 -0600
committerJens Axboe <axboe@kernel.dk>2022-07-24 18:39:11 -0600
commita9c210cebe13c36487a239ae7f4671a389fed127 (patch)
tree3aef4833aa165b8cee9e2251043d259466309da5 /io_uring/epoll.h
parent4cf90495281b43f5f597ef4a9abcc83a63973571 (diff)
io_uring: move epoll handler to its own file
Would be nice to sort out Kconfig for this and don't even compile epoll.c if we don't have epoll configured. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/epoll.h')
-rw-r--r--io_uring/epoll.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/io_uring/epoll.h b/io_uring/epoll.h
new file mode 100644
index 000000000000..870cce11ba98
--- /dev/null
+++ b/io_uring/epoll.h
@@ -0,0 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0
+
+#if defined(CONFIG_EPOLL)
+int io_epoll_ctl_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe);
+int io_epoll_ctl(struct io_kiocb *req, unsigned int issue_flags);
+#endif