From owner-freebsd-questions Thu Aug 16 0:53:19 2001 Delivered-To: freebsd-questions@freebsd.org Received: from omta02.mta.everyone.net (sitemail.everyone.net [216.200.145.35]) by hub.freebsd.org (Postfix) with ESMTP id 44ECE37B403 for ; Thu, 16 Aug 2001 00:53:11 -0700 (PDT) (envelope-from ssrao@firstlinux.net) Received: from sitemail.everyone.net (reports [216.200.145.62]) by omta02.mta.everyone.net (Postfix) with ESMTP id 1F6A51C4979 for ; Thu, 16 Aug 2001 00:53:11 -0700 (PDT) Received: by sitemail.everyone.net (Postfix, from userid 99) id 096842755; Thu, 16 Aug 2001 00:53:11 -0700 (PDT) Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Mime-Version: 1.0 X-Mailer: MIME-tools 5.41 (Entity 5.404) Date: Thu, 16 Aug 2001 00:53:10 -0700 (PDT) From: srinivasarao singireddy To: freebsd-questions@freebsd.org Subject: needs clarification!!!! Reply-To: ssrao@firstlinux.net X-Originating-Ip: [65.192.85.131] Message-Id: <20010816075311.096842755@sitemail.everyone.net> 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 we are developing an application which ultimately leades to change in kernel. Our requirement is we need to do file operations in kernel mode. For achieving this, first we tried with system calls ( creat, open ). It compiled error free, but when comes to execution resulting in page fault. Then I came to know that open and creat are the system calls only used in user mode. I searched in web wastly, but could not find a single material on how to do file operations in kernel mode. I have gone thru the code which is under /sys/svr4 which is related to implementation of system calls, which contains the file operations code too. Can I use this ? If yes how to proceed ? If i can not ? how I have to proceed ? Please help me ssrao _____________________________________________________________ Want a new web-based email account ? ---> http://www.firstlinux.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message