*BSD News Article 56667


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!news.ecn.uoknor.edu!news.uoknor.edu!news.nodak.edu!plains.nodak.edu!not-for-mail
From: tinguely@plains.nodak.edu (Mark Tinguely)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Can I write to a file from kernel
Date: 12 Dec 1995 15:35:59 -0600
Organization: North Dakota State University
Lines: 9
Message-ID: <4aksjv$j0g@plains.nodak.edu>
References: <4affu1$go0@newsserv.cs.sunysb.edu>
NNTP-Posting-Host: plains.nodak.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

In article <4affu1$go0@newsserv.cs.sunysb.edu> vernick@cs.sunysb.edu (Michael Vernick) writes:
>Is it possible to write to a file from the kernel?  I am capturing
>some benchmark information at the driver level and want to save it 
>to a file.

see /sys/kern/kern_acct.c as an example of writting information to a file
from the kernel.

--mark.