svn commit: r260408 - head/sys/sys

Adrian Chadd adrian at FreeBSD.org
Tue Jan 7 20:24:25 UTC 2014


Author: adrian
Date: Tue Jan  7 20:24:25 2014
New Revision: 260408
URL: http://svnweb.freebsd.org/changeset/base/260408

Log:
  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.

Modified:
  head/sys/sys/event.h

Modified: head/sys/sys/event.h
==============================================================================
--- head/sys/sys/event.h	Tue Jan  7 20:12:10 2014	(r260407)
+++ head/sys/sys/event.h	Tue Jan  7 20:24:25 2014	(r260408)
@@ -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;


More information about the svn-src-head mailing list