Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Mar 2000 10:16:15 +0200
From:      Johan Kruger <jkruger@oskar.nanoteq.co.za>
To:        freebsd-questions@freebsd.org
Cc:        freebsd-hackers@freebsd.org
Subject:   Lodable kernel modules
Message-ID:  <00030710185702.63483@ockle.dev.nanoteq.co.za>

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




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