Date: Thu, 28 Aug 2003 15:24:07 +0200 From: "Poul-Henning Kamp" <phk@phk.freebsd.dk> To: Hidetoshi Shimokawa <simokawa@sat.t.u-tokyo.ac.jp> Cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/conf majors Message-ID: <5535.1062077047@critter.freebsd.dk> In-Reply-To: Your message of "Thu, 28 Aug 2003 22:20:21 %2B0900." <ybsisohhqay.wl@ett.sat.t.u-tokyo.ac.jp>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <ybsisohhqay.wl@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@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@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5535.1062077047>