Subject: Re: Device Properties: The Last Incarnation
To: Bill Studenmund <>
From: Ignatios Souvatzis <>
List: tech-kern
Date: 03/05/2001 20:58:33
On Mon, Mar 05, 2001 at 11:29:53AM -0800, Bill Studenmund wrote:
> Might I suggest doing thins more like how mac68k and other do? Each
> sonsole device fills in a struct consdev and shoves them in an array
> constab. The cninit() routine, in sys/dev/cninit.c, steps through each of
> them and calls its probe routine. From this, it determines the best fit
> for the console.

how does it now? err... ah yes, you mention it below:

> The one drawback to using cninit() is that the graphical devices would
> need to figure out where they were w/o the benefit of the bus to which
> they are attached. I'm not sure how much of a problem that is.

Basically, we'd have to duplicate the zbus find-subdevices code, and the
config_match/config_attach code in the zbus_attached devices.