summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2026-05-14 17:07:18 +0300
committerChristian Brauner <brauner@kernel.org>2026-05-15 18:34:26 +0300
commit5de2759f2b7c925f187e552cae47775acd5f4b40 (patch)
treea65b6c10e8ad20a106ef82455cdba2e65a76ba35 /include
parent9caef5b2a1fc22c2e24159a3d0fd74a47aed94ab (diff)
downloadlinux-5de2759f2b7c925f187e552cae47775acd5f4b40.tar.xz
eventpoll: export is_file_epoll()
Make is_file_epoll() available outside of epoll. This is in preparation from using it from io_uring. Signed-off-by: Jens Axboe <axboe@kernel.dk> Link: https://patch.msgid.link/20260514140817.623026-3-axboe@kernel.dk Reviewed-by: Christian Brauner <brauner@kernel.org> Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/eventpoll.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/eventpoll.h b/include/linux/eventpoll.h
index 728fb5dee5ed..7bf30e9f90d7 100644
--- a/include/linux/eventpoll.h
+++ b/include/linux/eventpoll.h
@@ -63,6 +63,7 @@ static inline void eventpoll_release(struct file *file)
int do_epoll_ctl(int epfd, int op, int fd, struct epoll_event *epds,
bool nonblock);
+int is_file_epoll(struct file *f);
/* Tells if the epoll_ctl(2) operation needs an event copy from userspace */
static inline int ep_op_has_event(int op)