From owner-freebsd-questions Mon Apr 19 15:30:50 1999 Delivered-To: freebsd-questions@freebsd.org Received: from cygnus.rush.net (cygnus.rush.net [209.45.245.133]) by hub.freebsd.org (Postfix) with ESMTP id 03E74156EF for ; Mon, 19 Apr 1999 15:30:43 -0700 (PDT) (envelope-from bright@rush.net) Received: from localhost (bright@localhost) by cygnus.rush.net (8.9.3/8.9.3) with SMTP id RAA24238; Mon, 19 Apr 1999 17:43:57 -0500 (EST) Date: Mon, 19 Apr 1999 17:43:56 -0500 (EST) From: Alfred Perlstein To: Gurudatt Shenoy Cc: freebsd-questions@FreeBSD.ORG Subject: Re: File write from kernel In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 19 Apr 1999, Gurudatt Shenoy wrote: > > Hello, > Is there a way to write out the value of a variable defined in a kernel > routine into a file? > > If there is no straightforward way to do this, please point me to some > papers/books/website where I could read about how to do it. A much easier way to do this is create a 'sysctl' that a userland program can fetch. look in the kernel sources for SYSCTL > > Thanks, > Guru > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > -Alfred To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message