cvs commit: src/sys/conf majors

Ruslan Ermilov ru at FreeBSD.org
Mon Feb 2 14:23:15 PST 2004


On Mon, Feb 02, 2004 at 02:08:27PM -0800, Paul Saab wrote:
> Poul-Henning Kamp (phk at phk.freebsd.dk) wrote:
> > In message <200402022000.i12K0uvl041338 at repoman.freebsd.org>, Paul Saab writes:
> > >ps          2004/02/02 12:00:56 PST
> > >
> > >  FreeBSD src repository
> > >
> > >  Modified files:
> > >    sys/conf             majors 
> > >  Log:
> > >  Reserve 187 (twa) for the new 3ware ATA RAID controller.
> > 
> > No, please don't.
> > 
> > If you need a major for 4-stable, then commit it on that
> > branch, major numbers are not needed for the majority
> > of drivers in -current.
> 
> There's nothing in the -stable major's file.
> 
What PHK means is that if this driver is both for 5.x and 4.x,
then you should only register its major in RELENG_4 -- 5.x
provides automatic major numbers allocations:

: /*
:  * XXX: do not use MAJOR_AUTO unless you have no choice.  In general drivers
:  * should just not initialize .d_maj and that will DTRT.
:  */
: #define MAJOR_AUTO      0       /* XXX: Not GM */


Cheers,
-- 
Ruslan Ermilov
FreeBSD committer
ru at FreeBSD.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-src/attachments/20040203/85d889f3/attachment-0001.bin


More information about the cvs-src mailing list