cvs commit: src/sys/conf majors

Poul-Henning Kamp phk at phk.freebsd.dk
Thu Aug 28 06:24:17 PDT 2003


In message <ybsisohhqay.wl at ett.sat.t.u-tokyo.ac.jp>, Hidetoshi Shimokawa writes
:
>At Thu, 28 Aug 2003 15:02:23 +0200,
>Poul-Henning Kamp wrote:
>> 
>> In message <ybslltegdcx.wl at ett.sat.t.u-tokyo.ac.jp>, Hidetoshi Shimokawa writes
>> :
>> 
>> >> >WARNING: driver "foo" used unreserved major device number bar
>> >> 
>> >> You should use automatic assignment of majors.
>> >
>> >Do you have any sample of console drivers converted to use MAJOR_AUTO?
>> 
>> I don't really think that it matters that it is a console driver,
>> why should it ?
>
>We call makedev() in cnprobe and we cannot call make_dev() before
>SI_SUB_DRIVERS. This is my understanding why we have not converted
>any console driver to use MAJOR_AUTO.

Ohh, right, _that_ hack.

Yes, in that case you need a static Major.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.


More information about the cvs-src mailing list