From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 6 20:11:10 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E4BAA16A4CE for ; Wed, 6 Apr 2005 20:11:09 +0000 (GMT) Received: from f25.mail.ru (f25.mail.ru [194.67.57.151]) by mx1.FreeBSD.org (Postfix) with ESMTP id 90BDC43D49 for ; Wed, 6 Apr 2005 20:11:09 +0000 (GMT) (envelope-from morzhus@mail.ru) Received: from mail by f25.mail.ru with local id 1DJGrj-00091q-00; Thu, 07 Apr 2005 00:11:07 +0400 Received: from [168.103.115.128] by win.mail.ru with HTTP; Thu, 07 Apr 2005 00:11:07 +0400 From: Mrzh To: Warner Losh Mime-Version: 1.0 X-Mailer: mPOP Web-Mail 2.19 X-Originating-IP: [168.103.115.128] Date: Thu, 07 Apr 2005 00:11:07 +0400 In-Reply-To: <20050406.122819.71154504.imp@bsdimp.com> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit Message-Id: cc: freebsd-hackers@freebsd.org Subject: Re[2]: Using kld functions in other kld's? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Mrzh List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Apr 2005 20:11:10 -0000 Thanks a lot, I'll look into MODULE_DEPEND. -----Original Message----- From: Warner Losh 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" > 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 >