summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorChristian Brauner <brauner@kernel.org>2025-02-20 12:18:47 +0300
committerChristian Brauner <brauner@kernel.org>2025-02-20 12:18:47 +0300
commit0511f4e6a16988e485a5e60727c89e2ca9f83f44 (patch)
tree4c460d4123dab15d9c065322a97bfd4d989566e9 /include/linux
parent2014c95afecee3e76ca4a56956a936e23283f05b (diff)
parentae3a4f1fdc2cfad089e79e2ee4697f84941528d3 (diff)
downloadlinux-0511f4e6a16988e485a5e60727c89e2ca9f83f44.tar.xz
Merge patch series "epoll changes for io_uring wait support"
Bring in the preparatory epoll changes for io_uring epoll support. * patches from https://lore.kernel.org/r/20250219172552.1565603-1-axboe@kernel.dk: eventpoll: add epoll_sendevents() helper eventpoll: abstract out ep_try_send_events() helper eventpoll: abstract out parameter sanity checking Link: https://lore.kernel.org/r/20250219172552.1565603-1-axboe@kernel.dk Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/eventpoll.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/eventpoll.h b/include/linux/eventpoll.h
index 0c0d00fcd131..ccb478eb174b 100644
--- a/include/linux/eventpoll.h
+++ b/include/linux/eventpoll.h
@@ -25,6 +25,10 @@ struct file *get_epoll_tfile_raw_ptr(struct file *file, int tfd, unsigned long t
/* Used to release the epoll bits inside the "struct file" */
void eventpoll_release_file(struct file *file);
+/* Copy ready events to userspace */
+int epoll_sendevents(struct file *file, struct epoll_event __user *events,
+ int maxevents);
+
/*
* This is called from inside fs/file_table.c:__fput() to unlink files
* from the eventpoll interface. We need to have this facility to cleanup