From owner-freebsd-hackers Wed Dec 8 8: 4: 7 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from mimer.webgiro.com (mimer.webgiro.com [212.209.29.5]) by hub.freebsd.org (Postfix) with ESMTP id C3DEE14C10 for ; Wed, 8 Dec 1999 08:03:56 -0800 (PST) (envelope-from abial@webgiro.com) Received: by mimer.webgiro.com (Postfix, from userid 66) id E2F4D2DC0A; Wed, 8 Dec 1999 17:04:46 +0100 (CET) Received: by mx.webgiro.com (Postfix, from userid 1001) id 100807811; Wed, 8 Dec 1999 17:01:09 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mx.webgiro.com (Postfix) with ESMTP id 0D89F10E10; Wed, 8 Dec 1999 17:01:09 +0100 (CET) Date: Wed, 8 Dec 1999 17:01:09 +0100 (CET) From: Andrzej Bialecki To: Dan Seguin Cc: Arun Sharma , freebsd-hackers@FreeBSD.ORG Subject: Re: Fwd: Re: kstat - an API for gathering kernel stats In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 8 Dec 1999, Dan Seguin wrote: > > Is it possible to make nodes dynamically that are immutable from userland > (even by root), but modifyable from the kernel? Yes, of course. Just mark them as read-only (CTLFLAG_RD). You are free to assign any value to them within the kernel. If it's more complex type handled with SYSCTL_PROC (like eg. vm.zone sysctl) you still can decide what value you return from kernel, and you can ignore any requests to assign new values. > > On Mon, 29 Nov 1999, Andrzej Bialecki wrote: > > > > > Yes. See for example linux emulator or my SPY module: > > > > http://www.freebsd.org/~abial/spy > > > > You can also create whole new branches, as the second example shows. > > > > 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/ ---- > > > > -------------------------------------------------------------------------------- > Dan Seguin Texar Software, Corporation. > > Visit us at the RSA Conference 2000, January 16-20, San Jose, Booth # 1241 > > > > 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-hackers" in the body of the message