mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
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:
parent
9caef5b2a1
commit
5de2759f2b
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user