From owner-freebsd-questions Tue Mar 9 10:19:37 1999 Delivered-To: freebsd-questions@freebsd.org Received: from cs.tamu.edu (clavin.cs.tamu.edu [128.194.130.106]) by hub.freebsd.org (Postfix) with ESMTP id 7ECF414F29 for ; Tue, 9 Mar 1999 10:19:35 -0800 (PST) (envelope-from gurudatt@cs.tamu.edu) Received: from dilbert.cs.tamu.edu (IDENT:2146@dilbert [128.194.133.100]) by cs.tamu.edu (8.9.1/8.9.1) with ESMTP id MAA16634 for ; Tue, 9 Mar 1999 12:18:42 -0600 (CST) Received: from localhost by dilbert.cs.tamu.edu (8.9.1/8.9.1) with SMTP id MAA22047 for ; Tue, 9 Mar 1999 12:17:15 -0600 (CST) X-Authentication-Warning: dilbert.cs.tamu.edu: gurudatt owned process doing -bs Date: Tue, 9 Mar 1999 12:17:15 -0600 (CST) From: Gurudatt Shenoy X-Sender: gurudatt@dilbert To: freebsd-questions@freebsd.org Subject: Write to file from the kernel ? 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 Hi Is there any way to write the contents of an array declared in a kernel routine to a file? Example: In the function "socket" in /sys/uipc_syscalls.c, I have access to an array int TAB[MAX_TAB_SIZE]. I don't suppose we can use user level file I/O (open, write,close) to copy the contents of TAB to a file. Any alternatives? Thanks in advance, Guru To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message