tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: cleanup some inconsistency in config(8)

On Mon, Jun 09, 2008 at 08:21:40PM +0200, Matthias Drochner wrote:
> There is some annoying abuse of autoconf interface locators
> in files.* files, where pseudo-devices define them just
> to get a "cfdriver" definition issued by config(8). There
> is some code in config(8) causing that, but it doesn't make
> much sense because a "cfdriver" definition is needed to make
> use of eg. dynamic creation of pseudo-devices, which is unrelated
> to the ability to attach children. An example is vnd(4).

Yes, that hack is ugly.

> I suggest to add a new keyword to the config(5) language,
> "defpseudodev", to be used like "defpseudo", except that
> it always creates the "device_t" related glue, without
> the need to define dummy locators.
> As a further step, the locator syntax could be removed
> for classic "devpseudo" pseudo-devices, but I'd wait
> with that until after the NetBSD-5 branch.

Why wait?  You can use config(5) version to manage that, and reject
source trees that are too old.

> Does this sound reasonable?


Quentin Garnier - -
"See the look on my face from staying too long in one place
[...] every time the morning breaks I know I'm closer to falling"
KT Tunstall, Saving My Face, Drastic Fantastic, 2007.

Attachment: pgpZ9ANrqCq47.pgp
Description: PGP signature

Home | Main Index | Thread Index | Old Index