Using kld functions in other kld's?
Daniel O'Connor
doconnor at gsoft.com.au
Wed Apr 6 00:02:53 PDT 2005
On Wed, 6 Apr 2005 16:28, Mrzh wrote:
> I'm trying to access one kld's functions from another kld in FreeBSD 5.3.
> Even though I have non-static functions in my first loaded kld, subsequent
> kldload of another kld that refers to those symbols gives me "link_elf:
> symbol blahblahblah undefined". I was able to do this kind of thing in
> FreeBSD 4.x before.
>
> Is what I'm trying to do possible in FreeBSD 5.3? What could be source of
> the problem? Thanks very much for any reply!
A KLD's symbols aren't exported by default (any more?) so you can only access
the public interfaces.
See EXPORT_SYMS in /usr/src/sys/conf/kmod.mk
--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
-- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20050406/f5f0c068/attachment.bin
More information about the freebsd-hackers
mailing list