tech-kern archive

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

Re: kernel constructor

> On Nov 8, 2014, at 11:16 PM, Masao Uebayashi <> wrote:
> Ideally the long hardcoded sequence of init functions in init_main:main() is
> converted to a single vector whose order is resolved by modular dependency.
> But for the moment such a hardcoded priority should be good enough to improve
> modularity.
> Question - where to put the declarations (typedef, __link_set_decl())?

No more link sets please.
Can’t we use __attributes__((__constructor__))
and __attributes__((destructor));

Home | Main Index | Thread Index | Old Index