Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Feb 2002 17:52:24 -0600
From:      "Mike Meyer" <mwm-dated-1014853945.fa9c51@mired.org>
To:        Cliff Sarginson <csfbsd@raggedclown.net>
Cc:        questions@freebsd.org
Subject:   Re: Kernel loader
Message-ID:  <15478.55736.554792.708534@guru.mired.org>
In-Reply-To: <70438893@toto.iv>

next in thread | previous in thread | raw e-mail | index | archive | help
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.

	<mike

--
Mike Meyer <mwm@mired.org>			http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.

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?15478.55736.554792.708534>