From owner-freebsd-questions Fri Mar 23 16:40: 5 2001 Delivered-To: freebsd-questions@freebsd.org Received: from clmboh1-smtp3.columbus.rr.com (clmboh1-smtp3.columbus.rr.com [65.24.0.112]) by hub.freebsd.org (Postfix) with ESMTP id AD6E937B719 for ; Fri, 23 Mar 2001 16:39:59 -0800 (PST) (envelope-from wmoran@iowna.com) Received: from iowna.com (dhcp065-024-023-038.columbus.rr.com [65.24.23.38]) by clmboh1-smtp3.columbus.rr.com (8.11.2/8.11.2) with ESMTP id f2O0bFH19325; Fri, 23 Mar 2001 19:37:16 -0500 (EST) Message-ID: <3ABBED03.87CBE50C@iowna.com> Date: Fri, 23 Mar 2001 19:40:35 -0500 From: Bill Moran X-Mailer: Mozilla 4.76 [en] (X11; U; FreeBSD 4.2-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: Kernel Newbie Cc: freebsd-questions@FreeBSD.ORG Subject: Re: writing to a file from kernel mode References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Kernel Newbie wrote: > > Hi, > > I am a relatively new to kernel development. > > 1. I need to write to a file from within a kernel mode. is that possible ? > if yes, how do I do it ? > > 2. Basically, what I need to do is to maintain a seperate counts of IP > packets received from seperate IP addresses. and I need to view the > statistics from the user mode. Any suggestions on how to go about it ?? > > Thanks, Have you considered using the syslog facility? man 3 syslog To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message