summaryrefslogtreecommitdiffstats
path: root/sys/sys/event.h
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2014-01-07 20:24:25 +0000
committeradrian <adrian@FreeBSD.org>2014-01-07 20:24:25 +0000
commit57b2f48ff1b103652509a27ceb1353f698e09461 (patch)
treeef6dde023d918ad63c4bdb1bb317179d79d83a6f /sys/sys/event.h
parent2fd0db3dfd7f379b8a76e72f2ce8171b55efe1c7 (diff)
downloadFreeBSD-src-57b2f48ff1b103652509a27ceb1353f698e09461.zip
FreeBSD-src-57b2f48ff1b103652509a27ceb1353f698e09461.tar.gz
Reserve an event type for the upcoming EVENT_SENDFILE and
extend the event struct pointer union to allow for 'other' types. Sponsored by: Netflix, Inc.
Diffstat (limited to 'sys/sys/event.h')
-rw-r--r--sys/sys/event.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/sys/event.h b/sys/sys/event.h
index 03bd7b9..bad8c9e 100644
--- a/sys/sys/event.h
+++ b/sys/sys/event.h
@@ -42,7 +42,8 @@
#define EVFILT_FS (-9) /* filesystem events */
#define EVFILT_LIO (-10) /* attached to lio requests */
#define EVFILT_USER (-11) /* User events */
-#define EVFILT_SYSCOUNT 11
+#define EVFILT_SENDFILE (-12) /* attached to sendfile requests */
+#define EVFILT_SYSCOUNT 12
#define EV_SET(kevp_, a, b, c, d, e, f) do { \
struct kevent *kevp = (kevp_); \
@@ -212,7 +213,8 @@ struct knote {
struct file *p_fp; /* file data pointer */
struct proc *p_proc; /* proc pointer */
struct aiocblist *p_aio; /* AIO job pointer */
- struct aioliojob *p_lio; /* LIO job pointer */
+ struct aioliojob *p_lio; /* LIO job pointer */
+ void *p_v; /* generic other pointer */
} kn_ptr;
struct filterops *kn_fop;
void *kn_hook;
OpenPOWER on IntegriCloud