[lkml]   [1999]   [May]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [RFC] Unifying kernel initialization
    On Tue, May 04, 1999 at 08:34:29PM +0200, Paul Rusty Russell wrote:
    > In message <> you write:
    > > In muc.lists.linux-kernel, you wrote:
    > > >This all seems terribly clumsy. I was thinking
    > > >that a better way to do it would be to have a
    > > >macro REGISTER_INIT_FUNC(function,priority),
    > > >which would add the nessesary info to the
    > > >object file. Then, the kernel would need only
    > > >to loop over this list and all the kernel would
    > > >be initialized in order.
    > >
    > > I 100% agree. It could be easily implemented using a special
    > > ELF section. Afaik there are already plans to do it in 2.3.
    > Rather than a numeric priority, give it a name, a list of things that
    > must preceed it, and a list of things it must preceed. Calculate the
    > initialisation order at runtime, and then drop that whole section of
    > code and data after initialization.

    That sounds too much like second system effect to me.

    I think a numeric priority is fine. It would be only used in
    exceptional situations anyways, the majority of drivers don't care.


    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:51    [W:0.022 / U:21.752 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site