Subject: Re: config_attach_pseudo(cfdata, aux)
To: Garrett D'Amore <garrett_damore@tadpole.com>
From: Iain Hibbert <plunky@rya-online.net>
List: tech-kern
Date: 03/20/2006 21:43:54
On Mon, 20 Mar 2006, Garrett D'Amore wrote:

> der Mouse wrote:
> > I've always wondered why pseudo-devices don't attach to a "pseudo" bus,
> > one that has no hardware behind it and exists solely for pseudo-devices
> > to attach to.  That's what I did when I wanted to build a particular
> > flavour of pseudo-disk and discovered I needed it to have a struct
> > device for internal purposes.

That may be what is happening here in reality, config_attach_pseudo() does
in fact give a device structure, just doesnt give a parent. It may be that
the semantics of what I have said is wrong and that the device which is
created is not the pseudo-device, but is attached to it.  I think I got
what I wanted though..

> Iain, is there some reason that device properties won't achieve what you
> need?

Well, see my other message to Uwe for some details. I think that although
it would work the way you are thinking, it would actually just introduce
more complexity than is necessary.

iain