From owner-freebsd-hackers Sun Oct 21 13:21:19 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mass.dis.org (mass.dis.org [216.240.45.41]) by hub.freebsd.org (Postfix) with ESMTP id 09FF537B409 for ; Sun, 21 Oct 2001 13:21:16 -0700 (PDT) Received: from mass.dis.org (localhost [127.0.0.1]) by mass.dis.org (8.11.6/8.11.3) with ESMTP id f9LKW5i00865; Sun, 21 Oct 2001 13:32:06 -0700 (PDT) (envelope-from msmith@mass.dis.org) Message-Id: <200110212032.f9LKW5i00865@mass.dis.org> X-Mailer: exmh version 2.1.1 10/15/1999 To: Zhihui Zhang Cc: Warner Losh , freebsd-hackers@FreeBSD.ORG Subject: Re: where are kernel modules located? In-reply-to: Your message of "Sun, 21 Oct 2001 14:05:56 EDT." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 21 Oct 2001 13:32:05 -0700 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > 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