Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178103310
D23172.1795971002.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D23172.1795971002.diff
View Options
Index: sys/compat/linux/linux_event.h
===================================================================
--- sys/compat/linux/linux_event.h
+++ sys/compat/linux/linux_event.h
@@ -38,9 +38,10 @@
#define LINUX_EPOLLERR 0x008
#define LINUX_EPOLLHUP 0x010
#define LINUX_EPOLLRDHUP 0x2000
-#define LINUX_EPOLLWAKEUP 1u<<29
-#define LINUX_EPOLLONESHOT 1u<<30
-#define LINUX_EPOLLET 1u<<31
+#define LINUX_EPOLLEXCLUSIVE (1u << 28)
+#define LINUX_EPOLLWAKEUP (1u << 29)
+#define LINUX_EPOLLONESHOT (1u << 30)
+#define LINUX_EPOLLET (1u << 31)
#define LINUX_EPOLL_EVRD (LINUX_EPOLLIN|LINUX_EPOLLRDNORM)
#define LINUX_EPOLL_EVWR (LINUX_EPOLLOUT|LINUX_EPOLLWRNORM)
Index: sys/compat/linux/linux_event.c
===================================================================
--- sys/compat/linux/linux_event.c
+++ sys/compat/linux/linux_event.c
@@ -177,6 +177,18 @@
++(*nkevents);
}
+ /*
+ * XXX Linux epoll_ctl documents EPOLLEXCLUSIVE's behaviour as "one or
+ * more of the epoll file descriptors will receive an event." Just
+ * ignore EPOLLEXCLUSIVE as a naive but perhaps conforming
+ * implementation.
+ */
+ if (levents & LINUX_EPOLLEXCLUSIVE) {
+ LINUX_CTR1(linux_epollexclusive,
+ "thread(%d) ignoring EPOLLEXCLUSIVE", td->td_tid);
+ levents &= ~LINUX_EPOLLEXCLUSIVE;
+ }
+
if ((levents & ~(LINUX_EPOLL_EVSUP)) != 0) {
p = td->td_proc;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 29, 4:50 PM (8 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42093009
Default Alt Text
D23172.1795971002.diff (1 KB)
Attached To
Mode
D23172: Ignore EPOLLEXCLUSIVE
Attached
Detach File
Event Timeline