Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 29 Jul 2002 19:53:07 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 29 Jul 2002 19:53:06 -0400 Received: from samba.sourceforge.net ([198.186.203.85]:55174 "HELO lists.samba.org") by vger.kernel.org with SMTP id ; Mon, 29 Jul 2002 19:53:03 -0400 From: Rusty Russell To: Linus Torvalds Cc: Rusty Russell , Roman Zippel , linux-kernel , Kai Germaschewski Subject: Re: [PATCH] automatic initcalls In-reply-to: Your message of "Sat, 27 Jul 2002 21:47:24 MST." Date: Tue, 30 Jul 2002 09:39:51 +1000 Message-Id: <20020729235746.4CC354155@lists.samba.org> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1682 Lines: 45 In message you wri te: > > > On Sat, 27 Jul 2002, Jeff Garzik wrote: > > > > I've always preferred a system where one simply lists dependencies [as > > you describe above], and some program actually does the hard work of > > chasing down all the initcall dependency checking and ordering. > > > > Linus has traditionally poo-pooed this so I haven't put any work towards > > it... > > I don't hate the notion, but at the same time every time it comes up I > feel that there are reasonably simple ways to just avoid the ordering > problems. I think that the best hope is a combination of Roman's module depends work (based on Kai's "everything which is a module is trivial", and Stephen and my first depends hack) and explicit depends. Linkage ordering doesn't work in general, for things like "I want to be initialized before the non-boot cpus have come up", but for non-core code it's simple. > Rusty had a script, but somebody complained about the speed of it. I > haven't looked at it myself. Yes, it'll slow the build by a few seconds: but if the linker ever decides not to preserve ordering, we'll need it. My original shell script is suboptimal but we *don't* want the kernel build relying on libbfd. Roman and I will come up with something and send it to you later this week. Thanks! Rusty. -- Anyone who quotes me in their sig is an idiot. -- Rusty Russell. - 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/