Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 07 Apr 2005 00:11:07 +0400
From:      Mrzh <morzhus@mail.ru>
To:        Warner Losh <imp@bsdimp.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re[2]: Using kld functions in other kld's?
Message-ID:  <E1DJGrj-00091q-00.morzhus-mail-ru@f25.mail.ru>
In-Reply-To: <20050406.122819.71154504.imp@bsdimp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Thanks a lot, I'll look into MODULE_DEPEND.

-----Original Message-----
From: Warner Losh <imp@bsdimp.com>
To: doconnor@gsoft.com.au
Date: Wed, 06 Apr 2005 12:28:19 -0600 (MDT)
Subject: Re: Using kld functions in other kld's?

> 
> From: "Daniel O'Connor" <doconnor@gsoft.com.au>
> Subject: Re: Using kld functions in other kld's?
> Date: Wed, 6 Apr 2005 16:32:34 +0930
> 
> > 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
> 
> Generally this is to be avoided in favor of MODULE_DEPEND.
> 
> Warner
> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1DJGrj-00091q-00.morzhus-mail-ru>