Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Sep 2009 10:45:11 +0300
From:      Kostik Belousov <kostikbel@gmail.com>
To:        Stacey Son <sson@freebsd.org>
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
Message-ID:  <20090918074511.GJ47688@deviant.kiev.zoral.com.ua>
In-Reply-To: <200909160315.n8G3FvBB010648@svn.freebsd.org>
References:  <200909160315.n8G3FvBB010648@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



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