From owner-freebsd-hackers Fri Apr 14 19:27:56 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from hoemlsrv.firewall.lucent.com (hoemail1.lucent.com [192.11.226.161]) by hub.freebsd.org (Postfix) with ESMTP id 0A6E337B734 for ; Fri, 14 Apr 2000 19:27:53 -0700 (PDT) (envelope-from gcorcoran@lucent.com) Received: from hoemlsrv.firewall.lucent.com (localhost [127.0.0.1]) by hoemlsrv.firewall.lucent.com (Pro-8.9.3/8.9.3) with ESMTP id WAA22043 for ; Fri, 14 Apr 2000 22:27:51 -0400 (EDT) Received: from mhmail.mh.lucent.com (h135-3-115-8.lucent.com [135.3.115.8]) by hoemlsrv.firewall.lucent.com (Pro-8.9.3/8.9.3) with ESMTP id WAA22029; Fri, 14 Apr 2000 22:27:51 -0400 (EDT) Received: from lucent.com by mhmail.mh.lucent.com (8.8.8+Sun/EMS-1.5 sol2) id WAA14002; Fri, 14 Apr 2000 22:27:44 -0400 (EDT) Message-ID: <38F7D24D.AFE478B7@lucent.com> Date: Fri, 14 Apr 2000 22:22:05 -0400 From: "Gary T. Corcoran" Organization: Lucent Microelectronics - Client Access Broadband Systems X-Mailer: Mozilla 4.06 [en] (Win98; U) MIME-Version: 1.0 To: "Parthasarathy M. Aji" Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: kernel file I/O References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Parthasarathy M. Aji wrote: > > Hey All, > I know how to read and write to a text file in the user level , but I am > assigned the task of reading data from a file while writing a kernel > level C program. I don't know what functions to use, can any of you help > me. If you can point me to some web links or some code it would be really > helpful.. Thank you.. Funny you should ask... ;-) I asked this same question a couple of weeks ago. You should be able to find the answer, including sample code, in the email archives at the FreeBSD web site. Gotta run... Gary -- ========================================================= Gary Corcoran - Distinguished Member of Technical Staff Lucent Microelectronics - Client Access Broadband Systems Communications Protocol & Driver Development Group "We make the drivers that make communications work" Email: gcorcoran@lucent.com --------------------------------------------------------- There are only two kinds of machines - those that fail little by little, and those that fail all at once. ========================================================= To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message