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>
This commit is contained in:
Jens Axboe 2026-05-14 08:07:18 -06:00 committed by Christian Brauner
parent 9caef5b2a1
commit 5de2759f2b
No known key found for this signature in database
GPG Key ID: 91C61BC06578DCA2
2 changed files with 2 additions and 1 deletions

View File

@ -334,7 +334,7 @@ static void __init epoll_sysctls_init(void)
static const struct file_operations eventpoll_fops;
static inline int is_file_epoll(struct file *f)
int is_file_epoll(struct file *f)
{
return f->f_op == &eventpoll_fops;
}

View File

@ -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)