From owner-freebsd-arch Sat Jul 8 6: 5:19 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 2934D37B552; Sat, 8 Jul 2000 06:05:16 -0700 (PDT) (envelope-from abial@webgiro.com) Received: by mimer.webgiro.com (Postfix, from userid 66) id 816C32DC0A; Sat, 8 Jul 2000 15:10:51 +0200 (CEST) Received: by mx.webgiro.com (Postfix, from userid 1001) id 43CE87817; Sat, 8 Jul 2000 15:03:21 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mx.webgiro.com (Postfix) with ESMTP id 376B210E17; Sat, 8 Jul 2000 15:03:21 +0200 (CEST) Date: Sat, 8 Jul 2000 15:03:21 +0200 (CEST) From: Andrzej Bialecki To: Kelly Yancey , green@freebsd.org Cc: freebsd-arch@FreeBSD.ORG Subject: Oops! (Re: UPDATE2: Dynamic sysctls) 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 Fri, 7 Jul 2000, Kelly Yancey wrote: > On Sat, 8 Jul 2000, Andrzej Bialecki wrote: > > > Hi again, > > > > I received many useful comments regarding previous version, and made some > > changes in functionality. The latest patches can be found at: > > > > http://www.freebsd.org/~abial/dyn_sysctl-070700.tgz I'm not sure, guys, that you retrieved the right version.... :-(( *blush* I must have done something stupid here when copying these files to freefall. It seems to me that you still refer to the older version, because in the new I changed the following: * SYSCTL_CTX_CREATE is gone, replaced by SYSCTL_CTX_INIT * sysctl_ctx_add was renamed, and two other functions were added: sysctl_ctx_entry_add sysctl_ctx_entry_find sysctl_ctx_entry_del * sysctl_add_oid accepts NULL as valid context * oidp->ref is now oidp->oid_refcnt etc, etc... Please check that you have this version. I accidentally overwrote the previous file on freefall, so I have no way of knowing what was there before... I know, I know (*bangs his head in the wall*)... Too little sleep. Anyway, I double checked it right now. The file that you want is named dyn_sysctl-080700.tgz. I added Brian's suggestion about M_WAITOK. Sorry again! > By the way, did you get message > I sent regarding > the last patchset? I am still unsure how the warning comment in > sysctl_remove_oid applys. Also, I'de like to know what you thought of the > suggestion to remove all special knowledge of contexts from > sysctl_add_oid. i.e. to remove context handling from sysctl_add_oid and make > the modules using contexts do something like: Yes, the new patches allow you to do this. Thank you for the idea! 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