tech-kern archive

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

Re: Module auto-unloading (was Re: CVS commit: src/sys/arch/x86/x86)

On Tue, Oct 18, 2011 at 12:50:58PM -0400, Jachym Holecek wrote:
> # David Young 2011-10-18:
> > On Tue, Oct 18, 2011 at 11:28:22AM -0400, Jared McNeill wrote:
> > > I played around with driver module autoloading a while back, and it
> > > worked pretty well but the implementation I came up with required
> > > duplicating match data in <module>.plist.
> > 
> > This sounds like a step in the right direction (recording match data
> > in a plist, not duplicating it). What would it take to get rid of the
> > non-plist match data?
> Funny enough that's exactly what my GSoC project did some years ago.
> There was a lot of manual work to abstract all accesses to match data
> behind an API, major rework of autoconf(4) (not sure how much of that
> was actually necessary), simple change to config(1) to emit match data
> as plist array -- that sort of thing. No big science, just a lot of
> typing... The match data array for builtin drivers is going to be
> fairly huge in XML encoding, it was much better with bplist.

Wonderful.  Can you generate a patch for review?


David Young             OJC Technologies is now Pixo     Urbana, IL   (217) 344-0444 x24

Home | Main Index | Thread Index | Old Index