lkml.org 
[lkml]   [1999]   [May]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC] Unifying kernel initialization
On Tue, May 04, 1999 at 08:34:29PM +0200, Paul Rusty Russell wrote:
> In message <99May4.204226met_dst.140575-1@colin.muc.de> 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.

-Andi


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:51    [W:0.325 / U:0.100 seconds]
©2003-2011 Jasper Spaans. Advertise on this site