From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 17 13:34:53 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 00EE51065670 for ; Mon, 17 Nov 2008 13:34:53 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id B630D8FC14 for ; Mon, 17 Nov 2008 13:34:52 +0000 (UTC) (envelope-from des@des.no) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id B05946D43F for ; Mon, 17 Nov 2008 13:34:51 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id 9012C84490; Mon, 17 Nov 2008 14:34:51 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: FreeBSD Hackers References: <671bb5fc0811151927j6dcb5155oeffbf4cc95cbccb6@mail.gmail.com> <20081116100923.GU81783@hoeg.nl> <20081117113522.GA2732@debian.samsung.router> Date: Mon, 17 Nov 2008 14:34:51 +0100 In-Reply-To: <20081117113522.GA2732@debian.samsung.router> (Alexej Sokolov's message of "Mon, 17 Nov 2008 12:35:22 +0100") Message-ID: <868wri3284.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: KLD loading, liking X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Nov 2008 13:34:53 -0000 Alexej Sokolov writes: > Not only that. The use of the MODULE_DEPEND macro allows one module to > access the variables of modules on which it depends. No. Any module X can access any public variable or function in the kernel or in any other module Y, but loading X will fail if Y is not already loaded. The only effect of MODULE_DEPEND is to tell the loader that Y must be loaded before X. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no