From owner-freebsd-hackers Fri Apr 14 21:45:15 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id A9AEA37B5C3 for ; Fri, 14 Apr 2000 21:45:12 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id WAA39812; Fri, 14 Apr 2000 22:45:10 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id WAA62203; Fri, 14 Apr 2000 22:44:49 -0600 (MDT) Message-Id: <200004150444.WAA62203@harmony.village.org> To: "Parthasarathy M. Aji" Subject: Re: kernel file I/O Cc: freebsd-hackers@FreeBSD.ORG In-reply-to: Your message of "Fri, 14 Apr 2000 22:20:05 EDT." References: Date: Fri, 14 Apr 2000 22:44:49 -0600 From: Warner Losh Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message "Parthasarathy M. Aji" writes: : 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.. Sounds like an interesting class assignment. You best bet is to trace through the system call stuff and boil it down in the kernel. Shouldn't be too hard to track down. System calls like read/write/open/close are found sys/kern/vfs_syscalls.c. That's a good place to start. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message