Subject: Re: config_attach_pseudo(cfdata, aux)
To: der Mouse <mouse@Rodents.Montreal.QC.CA>
From: Garrett D'Amore <>
List: tech-kern
Date: 03/20/2006 11:48:47
der Mouse wrote:
>> Am creating pseudo device instances and have some attach arguments
>> that the device would like to see, but config_attach_pseudo() does
>> not pass aux arguments through to the device attach routine as
>> config_found() would.
>> I can configure the device externally (I get the softc back and can
>> twiddle it directly) but it seems cleaner for the device attach()
>> routine to handle that.
> 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.
> /~\ The ASCII				der Mouse
> \ / Ribbon Campaign
>  X  Against HTML
> / \ Email!	     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B

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

    -- Garrett

Garrett D'Amore, Principal Software Engineer
Tadpole Computer / Computing Technologies Division,
General Dynamics C4 Systems
Phone: 951 325-2134  Fax: 951 325-2191