From owner-freebsd-standards@FreeBSD.ORG Tue Jun 22 15:44:01 2004 Return-Path: Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8487216A4CE for ; Tue, 22 Jun 2004 15:44:01 +0000 (GMT) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 60D5943D55 for ; Tue, 22 Jun 2004 15:44:00 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id i5MFnslF044186 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 22 Jun 2004 18:49:56 +0300 (EEST) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.12.11/8.12.11) id i5MFiB7t047479; Tue, 22 Jun 2004 18:44:11 +0300 (EEST) (envelope-from ru) Date: Tue, 22 Jun 2004 18:44:11 +0300 From: Ruslan Ermilov To: ngl Message-ID: <20040622154411.GA47418@ip.net.ua> References: <047b01c4584d$262017a0$8501a8c0@spirit> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ibTvN161/egqYuK8" Content-Disposition: inline In-Reply-To: <047b01c4584d$262017a0$8501a8c0@spirit> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: freebsd-standards@freebsd.org Subject: Re: EXPORT_SYMS X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jun 2004 15:44:01 -0000 --ibTvN161/egqYuK8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jun 22, 2004 at 05:36:23PM +0600, ngl wrote: > In KLD module makefile i can specify=20 > EXPORT_SYMS=3D name1, name2, ... > What does it mean ? >=20 According to sys/conf/kmod.mk: # EXPORT_SYMS A list of symbols that should be exported from the module, # or the name of a file containing a list of symbols, or YES # to export all symbols. If not defined, no symbols are # exported. This is used to avoid possible name conflicts between different modules. All symbols that aren't exported (none are exported by default) will be made local by objcopy(1). In the past, two different modules could define a common global name, and resolution of a name could give unpredictable results, often resulting in a panic. Note: if module A depends on symbol S from module B, and the dependency of A on B is recorded, S should *not* be global. Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --ibTvN161/egqYuK8 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFA2FPLqRfpzJluFF4RAt6dAJ9CO6b/3pFngm3uHwZ8ts5BcD9SBQCdEjfn Qj1mvwEwJht5OvtFBR42AZ8= =jBHW -----END PGP SIGNATURE----- --ibTvN161/egqYuK8--