Subject: Re: devices in /kern ?
To: Manuel Bouyer <bouyer@antioche.eu.org>
From: Bill Studenmund <wrstuden@netbsd.org>
List: tech-kern
Date: 01/27/2005 11:14:22
--/9DWx/yDrRhgMJTb
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Jan 27, 2005 at 06:07:25PM +0100, Manuel Bouyer wrote:
> Hi,
> xen 2.0 allows binding of event channels (in the xen sense) to userlevel
> process. On linux this is done by a character special device and I'd like
> to keep a compatible interface. In works this way:
> when a process opens the device, a new private data structure containing
> an event ring is created. IOCTls allows to control the device, and
> especially to bind the controlling process to events. Reading the
> device will retrieve pending events from the ring (eventually blocking).
> events are unmasked by writing a binary mask to the device.
> Each processes opening the device has its own even ring and events bindin=
g.
>=20
> For NetBSD I'd like to avoid an entry in /dev, as this would mean adding
> this device to i386 binary sets. So I was asking if we can create a
> character device in /kern/xen/ (which already exists), of if it's possible
> to have the required behavior (especially per-process private data) with
> a regular kernfs file.

I think a device node in /kern/xen would be fine. Either that, or add the=
=20
device to the i386 binary sets. It will just not be configured if xen=20
isn't running.

Take care,

Bill

--/9DWx/yDrRhgMJTb
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (NetBSD)

iD8DBQFB+T2OWz+3JHUci9cRApYmAJ9xR6oR/tys56MnEOBESycB2GRP8QCeKTOP
e00Ri7JhNftWZMa8rOuoYVg=
=t2Um
-----END PGP SIGNATURE-----

--/9DWx/yDrRhgMJTb--