Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Oct 2001 13:32:05 -0700
From:      Mike Smith <msmith@freebsd.org>
To:        Zhihui Zhang <zzhang@cs.binghamton.edu>
Cc:        Warner Losh <imp@harmony.village.org>, freebsd-hackers@FreeBSD.ORG
Subject:   Re: where are kernel modules located? 
Message-ID:  <200110212032.f9LKW5i00865@mass.dis.org>
In-Reply-To: Your message of "Sun, 21 Oct 2001 14:05:56 EDT." <Pine.SOL.4.21.0110211403550.28717-100000@onyx> 

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> Could you please tell me where in the source the KLD location is
> determined? I found out that the KLD can be loaded under / in 4.3-Release
> even if I have a newer copy under /modules.  This gives me a lot of
> trouble debugging.

It shouldn't give you a lot of trouble because you should never have any
modules in /.

The reason / is searched is because modules and the kernel are searched 
for using the same path.

The default module search path is in /sys/boot/common/modules.c, 
unsuprisingly it's called "default_searchpath".

-- 
... every activity meets with opposition, everyone who acts has his
rivals and unfortunately opponents also.  But not because people want
to be opponents, rather because the tasks and relationships force
people to take different points of view.  [Dr. Fritz Todt]
           V I C T O R Y   N O T   V E N G E A N C E



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




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