Subject: Re: device attachement detection from userland
To: Quentin Garnier <>
From: Eduardo Horvath <>
List: tech-kern
Date: 11/01/2006 16:27:06
On Wed, 1 Nov 2006, Quentin Garnier wrote:
> On Wed, Nov 01, 2006 at 01:06:15PM +0100, Jachym Holecek wrote:

> > Things are somewhat complicated by the way our autoconf(9) currently
> > works. Among other things, "device_t" == "device _and_ driver". I think
> > this should change, but won't have time to work on it anytime soon.
> I've been doing some work in that area for some time.  I have started
> writing down some ideas, but it takes time and I don't have much to
> spend on it.
> One thing I'm sure of:  splitting struct device from softc is a bitch,
> but it's doable, although it took me several hours just for the kernel
> of my laptop.
> As a side-effect, I have wscons's mux "almost-device" in my radar,
> because the split is easy as long as drivers respect autoconf(9) API.

I did most of this work several years ago.  It's on the eeh-devprop 
branch.  It was working pretty well at the time, but will probably need 
lots of massaging due to the changes to autoconfig and properties over 
the years.  If you're having problems that's something to look at.