Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147447861
D36527.id110747.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D36527.id110747.diff
View Options
diff --git a/sys/compat/linuxkpi/common/include/linux/poll.h b/sys/compat/linuxkpi/common/include/linux/eventpoll.h
copy from sys/compat/linuxkpi/common/include/linux/poll.h
copy to sys/compat/linuxkpi/common/include/linux/eventpoll.h
--- a/sys/compat/linuxkpi/common/include/linux/poll.h
+++ b/sys/compat/linuxkpi/common/include/linux/eventpoll.h
@@ -1,9 +1,7 @@
/*-
- * Copyright (c) 2010 Isilon Systems, Inc.
- * Copyright (c) 2010 iX Systems, Inc.
- * Copyright (c) 2010 Panasas, Inc.
- * Copyright (c) 2013, 2014 Mellanox Technologies, Ltd.
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
+ * Copyright (c) 2022, Jake Freeland <jfree@freebsd.org>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -25,24 +23,23 @@
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * $FreeBSD$
*/
-#ifndef _LINUXKPI_LINUX_POLL_H_
-#define _LINUXKPI_LINUX_POLL_H_
-
-#include <sys/poll.h>
-#include <sys/fcntl.h>
-
-#include <linux/wait.h>
-#include <linux/file.h>
-typedef struct poll_table_struct {
-} poll_table;
+#ifndef _LINUXKPI_LINUX_EVENTPOLL_H_
+#define _LINUXKPI_LINUX_EVENTPOLL_H_
-extern void linux_poll_wait(struct linux_file *, wait_queue_head_t *, poll_table *);
-#define poll_wait(...) linux_poll_wait(__VA_ARGS__)
+#include <sys/poll.h>
-extern void linux_poll_wakeup(struct linux_file *);
+#define EPOLLIN POLLIN
+#define EPOLLPRI POLLPRI
+#define EPOLLOUT POLLOUT
+#define EPOLLERR POLLERR
+#define EPOLLHUP POLLHUP
+#define EPOLLNVAL POLLNVAL
+#define EPOLLRDNORM POLLRDNORM
+#define EPOLLRDBAND POLLRDBAND
+#define EPOLLWRNORM POLLWRNORM
+#define EPOLLWRBAND POLLWRBAND
+#define EPOLLRDHUP POLLRDHUP
-#endif /* _LINUXKPI_LINUX_POLL_H_ */
+#endif /* _LINUXKPI_LINUX_EVENTPOLL_H_ */
diff --git a/sys/compat/linuxkpi/common/include/linux/poll.h b/sys/compat/linuxkpi/common/include/linux/poll.h
--- a/sys/compat/linuxkpi/common/include/linux/poll.h
+++ b/sys/compat/linuxkpi/common/include/linux/poll.h
@@ -34,6 +34,7 @@
#include <sys/poll.h>
#include <sys/fcntl.h>
+#include <linux/eventpoll.h>
#include <linux/wait.h>
#include <linux/file.h>
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 12, 2:42 AM (8 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29511055
Default Alt Text
D36527.id110747.diff (2 KB)
Attached To
Mode
D36527: Add LinuxKPI EPOLL aliases
Attached
Detach File
Event Timeline
Log In to Comment