Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Jan 2014 20:24:25 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r260408 - head/sys/sys
Message-ID:  <201401072024.s07KOPxA079826@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401072024.s07KOPxA079826>