tech-kern archive

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

Re: Modularizing net80211 (was: link_set info needed)

On Sat, Apr 28, 2012 at 05:09:16PM +0100, David Laight wrote:
> > 
> > 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.

It's not even that complicated. Just provide symbols for start and end
of the .ctor / .dtor section. That can be done either using linker
scripts or by prepending / appending a small object like crt* does.


Home | Main Index | Thread Index | Old Index