Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Apr 1999 17:43:56 -0500 (EST)
From:      Alfred Perlstein <bright@rush.net>
To:        Gurudatt Shenoy <gurudatt@cs.tamu.edu>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: File write from kernel
Message-ID:  <Pine.BSF.3.96.990419174110.11384p-100000@cygnus.rush.net>
In-Reply-To: <Pine.GSO.3.96.990419165327.13707A-100000@dilbert>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.990419174110.11384p-100000>