From owner-freebsd-arch Sun Jul 2 16:10:17 2000 Delivered-To: freebsd-arch@freebsd.org Received: from mimer.webgiro.com (mimer.webgiro.com [212.209.29.5]) by hub.freebsd.org (Postfix) with ESMTP id 320B937B72E; Sun, 2 Jul 2000 16:10:14 -0700 (PDT) (envelope-from abial@webgiro.com) Received: by mimer.webgiro.com (Postfix, from userid 66) id AF3A52DC0C; Mon, 3 Jul 2000 01:15:57 +0200 (CEST) Received: by mx.webgiro.com (Postfix, from userid 1001) id 227367817; Mon, 3 Jul 2000 01:06:29 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mx.webgiro.com (Postfix) with ESMTP id 1DC0710E17; Mon, 3 Jul 2000 01:06:29 +0200 (CEST) Date: Mon, 3 Jul 2000 01:06:29 +0200 (CEST) From: Andrzej Bialecki To: Brian Fundakowski Feldman Cc: dfr@freebsd.org, jlemon@freebsd.org, freebsd-arch@freebsd.org Subject: Re: UPDATE: Re: Dynamic sysctls, next round (please review) In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, 2 Jul 2000, Brian Fundakowski Feldman wrote: > On Sun, 2 Jul 2000, Andrzej Bialecki wrote: > > * module B is left with subtree hanging in void: > > -static_root > > NOTHING! > > -node2(1) > > -leaf2(1) > > > > I don't have any good solution for it right now, except to warn users that > > they should always hang their subtrees off of static nodes. :-( > > There's already a good solution for this: you must always MODULE_DEPEND() > upon the owner of a node which you hang things from :) Now, we just need > to make sure each node is created by a module which you can MODULE_DEPEND() > on, and that's not too hard! I don't think this is relevant here. See the example (which is BTW a module, but doesn't need to be) provided with the patches. The granularity of dependancy is *per context*, not per module - in fact, the code that creates dynamic sysctls doesn't have to be a module, and it can create multiple contexts. The latest patches provide a working solution to this - perhaps not beautiful, but still something... BTW. I could limit support for dyn_sysctls to disjoint subtrees exclusively - but I think the ability to have partially overlapping trees is attractive enough to justify small overhead of traversing the tailq's several times... Andrzej Bialecki // WebGiro AB, Sweden (http://www.webgiro.com) // ------------------------------------------------------------------- // ------ FreeBSD: The Power to Serve. http://www.freebsd.org -------- // --- Small & Embedded FreeBSD: http://www.freebsd.org/~picobsd/ ---- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message