From owner-freebsd-questions Fri Feb 22 22:29: 2 2002 Delivered-To: freebsd-questions@freebsd.org Received: from post.mail.nl.demon.net (post-11.mail.nl.demon.net [194.159.73.21]) by hub.freebsd.org (Postfix) with ESMTP id 3D8D237B404 for ; Fri, 22 Feb 2002 22:28:59 -0800 (PST) Received: from [212.238.194.207] (helo=mailhost.raggedclown.net) by post.mail.nl.demon.net with esmtp (Exim 3.33 #1) id 16eVg2-000FeK-00 for questions@freebsd.org; Sat, 23 Feb 2002 06:28:58 +0000 Received: from angel.raggedclown.net (angel.raggedclown.intra [192.168.1.7]) by mailhost.raggedclown.net (Ragged Clown Mail Gateway [buffy]) with ESMTP id 0868713040 for ; Sat, 23 Feb 2002 07:28:56 +0100 (CET) Received: by angel.raggedclown.net (Ragged Clown Host [angel], from userid 1005) id 4010822593; Sat, 23 Feb 2002 07:28:57 +0100 (CET) Date: Sat, 23 Feb 2002 07:28:57 +0100 From: Cliff Sarginson To: questions@freebsd.org Subject: Re: Kernel loader Message-ID: <20020223062857.GA4649@raggedclown.net> References: <70438893@toto.iv> <15478.55736.554792.708534@guru.mired.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15478.55736.554792.708534@guru.mired.org> User-Agent: Mutt/1.3.27i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Feb 22, 2002 at 05:52:24PM -0600, Mike Meyer wrote: > Cliff Sarginson types: > > > > Now I do not believe that if you load module A, then module B is > > > > automagically loaded as well. Looking at the program kldload it > > > > is just a few lines that just invokes a system call to load the > > > > module requested. I think the system call code should be in my > > > > source tree somewhere but I am damned if I can find it. > > > Your belief is incorrect. Well, it's incorrect for elf modules. I > > > don't know about other formats because I didn't check them. The source > > > code you want is in sys/kern/kern_linker.c and link_elf.c. > > > > My follow up question is why dependent modules cannot be loaded > > automagically, but with what you have told me I may be able to > > look further into that myself. To be honest, I am not entirely sure > > what the use is of planting this dependency information if it is > > not used to do such a thing. It means you have to know something > > which the O/S is already capable of working out for you. The only > > other answer is that you have to tell the kernel in advance what > > a module is going to use for some other reason, although why escapes > > me at this early hour. > > I think we got one to many negatives in there. The kernel loader > *does* automatically load any dependencies listed for a module when it > loads that module. > *Sigh*. You are right. A superfluity of negatives. Am I too old to look for a change of career ? I'll stick to my Enid Blyton books from now on. -- Regards Cliff Sarginson -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message