From owner-svn-src-all@FreeBSD.ORG Fri Sep 18 07:45:17 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 21E7F106566C; Fri, 18 Sep 2009 07:45:17 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (skuns.zoral.com.ua [91.193.166.194]) by mx1.freebsd.org (Postfix) with ESMTP id 7F2438FC12; Fri, 18 Sep 2009 07:45:16 +0000 (UTC) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id n8I7jBHk046776 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 18 Sep 2009 10:45:11 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3) with ESMTP id n8I7jB4O077388; Fri, 18 Sep 2009 10:45:11 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3/Submit) id n8I7jBeF077387; Fri, 18 Sep 2009 10:45:11 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Fri, 18 Sep 2009 10:45:11 +0300 From: Kostik Belousov To: Stacey Son Message-ID: <20090918074511.GJ47688@deviant.kiev.zoral.com.ua> References: <200909160315.n8G3FvBB010648@svn.freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="CuSbO2Y8pb0HqfpG" Content-Disposition: inline In-Reply-To: <200909160315.n8G3FvBB010648@svn.freebsd.org> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r197240 - in head/sys: kern sys X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Sep 2009 07:45:17 -0000 --CuSbO2Y8pb0HqfpG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Sep 16, 2009 at 03:15:57AM +0000, Stacey Son wrote: > Author: sson > Date: Wed Sep 16 03:15:57 2009 > New Revision: 197240 > URL: http://svn.freebsd.org/changeset/base/197240 >=20 > Log: > Add optional touch event filter hooks to kevents. > =20 > The touch event filter is called when a kernel event data is possibly > updated. There are two hook points. First, during a kevent() system > call. Second, when an event has been triggered. > =20 > Approved by: rwatson (co-mentor) >=20 > Modified: > head/sys/kern/kern_event.c > head/sys/sys/event.h >=20 > Modified: head/sys/sys/event.h > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- head/sys/sys/event.h Tue Sep 15 22:46:06 2009 (r197239) > +++ head/sys/sys/event.h Wed Sep 16 03:15:57 2009 (r197240) > struct filterops { > int f_isfd; /* true if ident =3D=3D filedescriptor */ > int (*f_attach)(struct knote *kn); > void (*f_detach)(struct knote *kn); > int (*f_event)(struct knote *kn, long hint); > + void (*f_touch)(struct knote *kn, struct kevent *kev, long type); > }; > =20 > /* > @@ -193,6 +204,7 @@ struct knote { > } kn_ptr; > struct filterops *kn_fop; > void *kn_hook; > + int kn_hookid; > =20 You may want to add required padding to struct filterops and struct knote on stable/8 branch now, to be able to merge this after 8.0 is released without breaking KBI. --CuSbO2Y8pb0HqfpG Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAkqzOoYACgkQC3+MBN1Mb4gpbwCgu+l2rFUX0ELvCp64r6GL1Sn/ YQwAoNiWBTblP3ibXNcX4qrHvJVEDdZ/ =j5yl -----END PGP SIGNATURE----- --CuSbO2Y8pb0HqfpG--