summaryrefslogtreecommitdiffstats
path: root/sys/sys/event.h
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2020-06-08 08:04:09 +0000
committermpi <mpi@openbsd.org>2020-06-08 08:04:09 +0000
commit6e29a9444098b33c28a7ce5b32b593b9539d7294 (patch)
tree7e312cdeb58db6aaa4acfb1748b3f0d5119637e5 /sys/sys/event.h
parentupdate drm to linux 5.7 (diff)
downloadwireguard-openbsd-6e29a9444098b33c28a7ce5b32b593b9539d7294.tar.xz
wireguard-openbsd-6e29a9444098b33c28a7ce5b32b593b9539d7294.zip
Use a new EV_OLDAPI flag to match the behavior of poll(2) and select(2).
Adapt FS kqfilters to always return true when the flag is set and bypass the polling mechanism of the NFS thread. While here implement a write filter for NFS. ok visa@
Diffstat (limited to 'sys/sys/event.h')
-rw-r--r--sys/sys/event.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/sys/event.h b/sys/sys/event.h
index e9247b9cd93..a5000398a8f 100644
--- a/sys/sys/event.h
+++ b/sys/sys/event.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: event.h,v 1.38 2020/05/25 15:54:10 visa Exp $ */
+/* $OpenBSD: event.h,v 1.39 2020/06/08 08:04:10 mpi Exp $ */
/*-
* Copyright (c) 1999,2000,2001 Jonathan Lemon <jlemon@FreeBSD.org>
@@ -74,6 +74,7 @@ struct kevent {
#define EV_DISPATCH 0x0080 /* disable event after reporting */
#define EV_SYSFLAGS 0xF000 /* reserved by system */
+#define EV_OLDAPI 0x1000 /* match behavior of poll & select */
#define EV_FLAG1 0x2000 /* filter-specific flag */
/* returned values */