Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 09 May 1999 00:37:40 +0800
From:      Peter Wemm <peter@netplex.com.au>
To:        Doug Rabson <dfr@nlsystems.com>
Cc:        cvs-committers@freebsd.org, cvs-all@freebsd.org
Subject:   Re: cvs commit: src/sys/kern kern_linker.c kern_module.c src/sys/sys module.h 
Message-ID:  <19990508163742.91AFA1F58@spinner.netplex.com.au>
In-Reply-To: Your message of "Sat, 08 May 1999 17:18:26 %2B0100." <Pine.BSF.4.05.9905081717250.18703-100000@herring.nlsystems.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
Doug Rabson wrote:
> On Sat, 8 May 1999, Peter Wemm wrote:
> 
> > >   Modified files:
> > >     sys/kern             kern_linker.c kern_module.c 
> > >     sys/sys              module.h 
> > >   Log:
> > >   First stages of a module dependency cleanup.
> > 
> > My plan is to have a module_set and probably dependency_set containing
> > solely a list of pointers to modules in files or module dependency and
> > version information.  These will be a LOT easier to get to from the loader
> > than parsing the sysinit_set tables looking for module_register_init, and
> > should be reasonably easy to handle dependency information.
> 
> Good idea. I wonder if it will be possible to write a userland tool which
> dlopens the kld file and reads out the module information.

The interesting thing is that the dependency information can be defined in
pretty much the same way that DECLARE_MODULE() works.  We don't need to
worry about data structures for linking dependencies to modules etc,
because all the information goes with the .o files.  If they are linked
into a monolithic kernel, it's all merged into one set.  If the same binary
is made into a kld, then the data is useable by the loader etc and is easy
to get to.  The dependency info can probably specify filename hints too if
required.

FWIW, I see dependency information as a different mechanism to the new-bus
stuff.  Exec handlers, VFS and misc kernel components, etc are not part of
the new-bus scheme at all.

Cheers,
-Peter



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990508163742.91AFA1F58>