diff options
author | David Howells <dhowells@redhat.com> | 2012-10-13 05:46:48 -0400 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2012-10-13 05:46:48 -0400 |
commit | 607ca46e97a1b6594b29647d98a32d545c24bdff (patch) | |
tree | 30f4c0784bfddb57332cdc0678bd06d1e77fa185 /include/linux/eventpoll.h | |
parent | 08cce05c5a91f5017f4edc9866cf026908c73f9f (diff) |
UAPI: (Scripted) Disintegrate include/linux
Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Michael Kerrisk <mtk.manpages@gmail.com>
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Acked-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'include/linux/eventpoll.h')
-rw-r--r-- | include/linux/eventpoll.h | 53 |
1 files changed, 1 insertions, 52 deletions
diff --git a/include/linux/eventpoll.h b/include/linux/eventpoll.h index 41085d0f3955..6daf6d4971f6 100644 --- a/include/linux/eventpoll.h +++ b/include/linux/eventpoll.h | |||
@@ -10,59 +10,11 @@ | |||
10 | * Davide Libenzi <davidel@xmailserver.org> | 10 | * Davide Libenzi <davidel@xmailserver.org> |
11 | * | 11 | * |
12 | */ | 12 | */ |
13 | |||
14 | #ifndef _LINUX_EVENTPOLL_H | 13 | #ifndef _LINUX_EVENTPOLL_H |
15 | #define _LINUX_EVENTPOLL_H | 14 | #define _LINUX_EVENTPOLL_H |
16 | 15 | ||
17 | /* For O_CLOEXEC */ | 16 | #include <uapi/linux/eventpoll.h> |
18 | #include <linux/fcntl.h> | ||
19 | #include <linux/types.h> | ||
20 | |||
21 | /* Flags for epoll_create1. */ | ||
22 | #define EPOLL_CLOEXEC O_CLOEXEC | ||
23 | |||
24 | /* Valid opcodes to issue to sys_epoll_ctl() */ | ||
25 | #define EPOLL_CTL_ADD 1 | ||
26 | #define EPOLL_CTL_DEL 2 | ||
27 | #define EPOLL_CTL_MOD 3 | ||
28 | #define EPOLL_CTL_DISABLE 4 | ||
29 | |||
30 | /* | ||
31 | * Request the handling of system wakeup events so as to prevent system suspends | ||
32 | * from happening while those events are being processed. | ||
33 | * | ||
34 | * Assuming neither EPOLLET nor EPOLLONESHOT is set, system suspends will not be | ||
35 | * re-allowed until epoll_wait is called again after consuming the wakeup | ||
36 | * event(s). | ||
37 | * | ||
38 | * Requires CAP_BLOCK_SUSPEND | ||
39 | */ | ||
40 | #define EPOLLWAKEUP (1 << 29) | ||
41 | |||
42 | /* Set the One Shot behaviour for the target file descriptor */ | ||
43 | #define EPOLLONESHOT (1 << 30) | ||
44 | 17 | ||
45 | /* Set the Edge Triggered behaviour for the target file descriptor */ | ||
46 | #define EPOLLET (1 << 31) | ||
47 | |||
48 | /* | ||
49 | * On x86-64 make the 64bit structure have the same alignment as the | ||
50 | * 32bit structure. This makes 32bit emulation easier. | ||
51 | * | ||
52 | * UML/x86_64 needs the same packing as x86_64 | ||
53 | */ | ||
54 | #ifdef __x86_64__ | ||
55 | #define EPOLL_PACKED __attribute__((packed)) | ||
56 | #else | ||
57 | #define EPOLL_PACKED | ||
58 | #endif | ||
59 | |||
60 | struct epoll_event { | ||
61 | __u32 events; | ||
62 | __u64 data; | ||
63 | } EPOLL_PACKED; | ||
64 | |||
65 | #ifdef __KERNEL__ | ||
66 | 18 | ||
67 | /* Forward declarations to avoid compiler errors */ | 19 | /* Forward declarations to avoid compiler errors */ |
68 | struct file; | 20 | struct file; |
@@ -116,7 +68,4 @@ static inline void eventpoll_release(struct file *file) {} | |||
116 | 68 | ||
117 | #endif | 69 | #endif |
118 | 70 | ||
119 | #endif /* #ifdef __KERNEL__ */ | ||
120 | |||
121 | #endif /* #ifndef _LINUX_EVENTPOLL_H */ | 71 | #endif /* #ifndef _LINUX_EVENTPOLL_H */ |
122 | |||