>
> This mechanism only works for modules that are "separate" from the
> kernel (loaded via "boot" or from "filesys"). "builtin" modules still
> need to use the link_set mechanism.
Shouldn't be that hard to put the contructor list address into a
link_set - that would make it easy to get them called for 'built in'
modules.
Thinks a bit further...
Have each module define a snall structure that contains (say):
- it's name
- the address of a list of modules it depends on
- the address of its constructors
- the address of its destructios
Then you can control the order of initialisers as well.
David
--
David Laight: [email protected]