Re: Link order madness :-(

Thunder from the hill (thunder@ngforever.de)
Mon, 3 Jun 2002 12:13:29 -0600 (MDT)


Hi,

On Mon, 3 Jun 2002, Horst von Brand wrote:
> There should be a way of saying "This must be initialized after this, and
> before that" (the "before that" might perhaps be taken care of by the
> "that" itself). Spiced with a few "barriers": "Networking inited", etc.

Suggestion #1: make up an inittask table (bad idea, huge table) that gets
freed on end of init.

Suggestion #2: each big subsystem (net, scsi, pcmcia, etc.) gets a lock
that is engaged when starting, and is checked by the subsystems. The
subsystems' init won't take place unless the parent subsystem is up. At
end of init, these locks get freed.

Suggestion #3 (possibly the worst ever): let the subsubsystems be init'ed
by the subsystems, using #ifdef'd calls...

I must leave now, sorry.

Regards,
Thunder

-- 
ship is leaving right on time	|	Thunder from the hill at ngforever
empty harbour, wave goodbye	|
evacuation of the isle		|	free inhabitant not directly
caveman's paintings drowning	|	belonging anywhere

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