Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Feb 2002 07:28:57 +0100
From:      Cliff Sarginson <csfbsd@raggedclown.net>
To:        questions@freebsd.org
Subject:   Re: Kernel loader
Message-ID:  <20020223062857.GA4649@raggedclown.net>
In-Reply-To: <15478.55736.554792.708534@guru.mired.org>
References:  <70438893@toto.iv> <15478.55736.554792.708534@guru.mired.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Feb 22, 2002 at 05:52:24PM -0600, Mike Meyer wrote:
> Cliff Sarginson <csfbsd@raggedclown.net> 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 -- <csfbsd@raggedclown.net>

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020223062857.GA4649>