hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/include/linux/eventpoll.h
....@@ -1,14 +1,9 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * include/linux/eventpoll.h ( Efficient event polling implementation )
34 * Copyright (C) 2001,...,2006 Davide Libenzi
45 *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation; either version 2 of the License, or
8
- * (at your option) any later version.
9
- *
106 * Davide Libenzi <davidel@xmailserver.org>
11
- *
127 */
138 #ifndef _LINUX_EVENTPOLL_H
149 #define _LINUX_EVENTPOLL_H
....@@ -23,7 +18,7 @@
2318
2419 #ifdef CONFIG_EPOLL
2520
26
-#ifdef CONFIG_CHECKPOINT_RESTORE
21
+#ifdef CONFIG_KCMP
2722 struct file *get_epoll_tfile_raw_ptr(struct file *file, int tfd, unsigned long toff);
2823 #endif
2924
....@@ -66,6 +61,15 @@
6661 eventpoll_release_file(file);
6762 }
6863
64
+int do_epoll_ctl(int epfd, int op, int fd, struct epoll_event *epds,
65
+ bool nonblock);
66
+
67
+/* Tells if the epoll_ctl(2) operation needs an event copy from userspace */
68
+static inline int ep_op_has_event(int op)
69
+{
70
+ return op != EPOLL_CTL_DEL;
71
+}
72
+
6973 #else
7074
7175 static inline void eventpoll_init_file(struct file *file) {}