From owner-freebsd-questions Sat Feb 9 23:54:59 2002 Delivered-To: freebsd-questions@freebsd.org Received: from web14607.mail.yahoo.com (web14607.mail.yahoo.com [216.136.224.87]) by hub.freebsd.org (Postfix) with SMTP id 228F237B400 for ; Sat, 9 Feb 2002 23:54:58 -0800 (PST) Message-ID: <20020210075457.95240.qmail@web14607.mail.yahoo.com> Received: from [61.11.22.226] by web14607.mail.yahoo.com via HTTP; Sat, 09 Feb 2002 23:54:57 PST Date: Sat, 9 Feb 2002 23:54:57 -0800 (PST) From: Balaji Subject: accessing files in kernel To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi all, I have created a file "cache" in /usr. I want to access it from kernel. When a function from nfs_srvcache.c is called i want to add some data to this file. We are not getting how to do file I/O in kernel. Can we use open and write system calls for the same? we tried using open system call but it is giving some segmentation faults. Could anyone please tell us how to do this? Thanking all in anticipation, Yours Sincerely, Balaji Raghavan ===== The HA-NFS group, Pune Institute of Computer Technology. |_|_|_| |_|_|_\ |_|_|_| |_|_|_| |_|_|_\ /_|_|_\ |_|_|_\ |_| |_| )_) |_| |_| |_| )_)(_( |_| \_\ |_|_|_| |_|_|_/ |_|_|_| |_|_|_| |_|_<_< \_|_|_\ |_| )_) |_| |_| \_\ |_| |_| |_| )_) )_)|_| /_/ |_| |_| \_\ |_|_|_| |_|_|_| |_|_|_/ \_|_|_/ |_|_|_/ __________________________________________________ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message