From owner-freebsd-hackers Mon Mar 6 8:14:26 2000 Delivered-To: freebsd-hackers@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 2A16337BB48 for ; Mon, 6 Mar 2000 08:14:16 -0800 (PST) (envelope-from johan@ockle.dev.nanoteq.co.za) Received: by ockle.dev.nanoteq.co.za (8.9.3/8.9.3) id SAA63490 for freebsd-hackers@freebsd.org; Mon, 6 Mar 2000 18:14:16 +0200 (SAST) (envelope-from johan) From: Johan Kruger Reply-To: jkruger@oskar.nanoteq.co.za Organization: Nanoteq To: freebsd-hackers@freebsd.org Subject: KLD's Date: Mon, 6 Mar 2000 18:13:39 +0200 X-Mailer: KMail [version 1.0.28] Content-Type: text/plain MIME-Version: 1.0 Message-Id: <00030618141601.63483@ockle.dev.nanoteq.co.za> Content-Transfer-Encoding: 8bit Sender: owner-freebsd-hackers@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. 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-hackers" in the body of the message