From owner-freebsd-questions Tue Mar 7 0:19:43 2000 Delivered-To: freebsd-questions@freebsd.org Received: from ockle.dev.nanoteq.co.za (ockle.dev.nanoteq.co.za [196.7.114.28]) by hub.freebsd.org (Postfix) with ESMTP id 5D6A437BAEE; Tue, 7 Mar 2000 00:19:06 -0800 (PST) (envelope-from johan@ockle.dev.nanoteq.co.za) Received: by ockle.dev.nanoteq.co.za (8.9.3/8.9.3) id KAA65308; Tue, 7 Mar 2000 10:18:57 +0200 (SAST) (envelope-from johan) From: Johan Kruger Reply-To: jkruger@oskar.nanoteq.co.za Organization: Nanoteq To: freebsd-questions@freebsd.org Subject: Lodable kernel modules Date: Tue, 7 Mar 2000 10:16:15 +0200 X-Mailer: KMail [version 1.0.28] Content-Type: text/plain Cc: freebsd-hackers@freebsd.org MIME-Version: 1.0 Message-Id: <00030710185702.63483@ockle.dev.nanoteq.co.za> Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I am busy to convert two lkm's to kld's and having some problem with it. ----------------------------- KLD's on 3-STABLE and 4.0-CURRENT ----------------------------- The scenario is two lkm's ( now kld's ) which are loaded dependantly ( A and B ) I used to load them as : /sbin/modload -o /tmp/kern.sym ./A.o /sbin/modload -A /tmp/kern.sym ./B.o to keep the symbols available. The general layout of the modules used to look like the lkm examples they gave in /usr/share/examples/lkm/misc ( SPECIFICALLY misc one ) I couldn't get an example of a KLD looking like this one, there is only ......./kld/cdev and ..../kld/syscall. So i used syscall examples. Then i compiled the module B.ko with A.ko as a dependancy. ( I think i did , specked KMODDEPS= cspop_mod.ko which is module A in the Makefile. I am loading with kldload ./A and kldload ./B ( it's the only way i know of ). But now it still looks as if the two modules dont know about each other. Is there an example of something like this lying around ??? How do i (link) the symbols to the second KLD loaded ??? -- Johan Kruger ( B.Ing Electronic Engineering ) Developement Engineer Nanoteq PTA ( 012 6727000 ) e-mail : jkruger@oskar.nanoteq.co.za e-mail : jk@nanoteq.co.za To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message