Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Feb 2002 23:54:57 -0800 (PST)
From:      Balaji <balajir12@yahoo.com>
To:        freebsd-questions@freebsd.org
Subject:   accessing files in kernel
Message-ID:  <20020210075457.95240.qmail@web14607.mail.yahoo.com>

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020210075457.95240.qmail>