Subject: Re: major device number assignment
To: Simon Burge <simonb@wasabisystems.com>
From: Quentin Garnier <cube@cubidou.net>
List: tech-kern
Date: 10/14/2005 08:30:43
--sdJFN6SSISdF2ksn
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Oct 14, 2005 at 04:15:52PM +1000, Simon Burge wrote:
> Quentin Garnier wrote:
>=20
> > On Fri, Oct 14, 2005 at 03:33:15PM +1000, Simon Burge wrote:
> >
> > > I'm pretty sure that entries in sys/conf/majors can be overriden by
> > > arch-specific entries, so just add it to the end of the former file
> > > and it should effect any existing archs that use twe.
> >=20
> > They're not overriden;  they just co-exist.  Both major numbers will be
> > valid on archs that already provide a major number for that device.
>=20
> That seems ... suboptimal at first glance.  Does the MAKEDEV generator

Well, it does allow smooth transition from one major number to the
other.  Now, config(1) would have to be able to produce the relevant
#ifdef COMPAT_XX.

> pick the first or last major?

My reading of the code is that it picks up the MD one in the end, if it
exists.

--=20
Quentin Garnier - cube@cubidou.net - cube@NetBSD.org
"When I find the controls, I'll go where I like, I'll know where I want
to be, but maybe for now I'll stay right here on a silent sea."
KT Tunstall, Silent Sea, Eye to the Telescope, 2004.

--sdJFN6SSISdF2ksn
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iQEVAwUBQ09QktgoQloHrPnoAQJvtwf+JIEK0tOs/kxIravv+xT/072gIqjffzHD
NomabZdvporl37HRWIIqxGRYLr4TgQI6Uf2nwjJ9qDLQqrN1xV0XdTd1OJkg6vJZ
Z4/j8o4RGGH1EaAkzHN5AWy/k9tA0K/Lufzbz49teIM+tHYx1N1FqwERUpSIxEjk
o4oqkPR3oJljdnQioLVcutP9X0q7RweDNwyTa+y/P5hKQuxd7FmNSM6q4XZOaVbg
yOtLrXSq6Wv1CMWeorFDrPl6IUidOpC6GesKgpl0qgGHuVWxbjgAu0/UJC1MQEpR
NfzWHzMFQL9wu4TbXIFf3xCOWsdVe8cK9ULP02+MRVY+kZlwT+6Y+Q==
=n2jz
-----END PGP SIGNATURE-----

--sdJFN6SSISdF2ksn--