@@ -18,6 +18,8 @@
#include <linux/fcntl.h>
#include <linux/types.h>
+#include <linux/signal.h>
+
/* Flags for epoll_create1. */
#define EPOLL_CLOEXEC O_CLOEXEC
@@ -61,6 +63,24 @@ struct epoll_event {
__u64 data;
} EPOLL_PACKED;
+struct epoll_mod_cmd {
+ int flags;
+ int op;
+ int fd;
+ __u32 events;
+ __u64 data;
+ int error;
+} EPOLL_PACKED;
+
+struct epoll_wait_spec {
+ int maxevents;
+ struct epoll_event *events;
+ int clockid;
+ struct timespec timeout;
+ sigset_t *sigmask;
+ size_t sigsetsize;
+} EPOLL_PACKED;
+
#ifdef CONFIG_PM_SLEEP
static inline void ep_take_care_of_epollwakeup(struct epoll_event *epev)
{
Two structs involved in the coming syscall is defined. Flags in epoll_mod_cmd are reserved, which makes better word alignment and may allow future extension. Signed-off-by: Fam Zheng <famz@redhat.com> --- include/uapi/linux/eventpoll.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+)