From owner-freebsd-questions@FreeBSD.ORG Tue Sep 28 01:50:47 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E047E16A4CF for ; Tue, 28 Sep 2004 01:50:46 +0000 (GMT) Received: from smtp.huawei-3com.com (smtp.huawei-3com.com [219.133.0.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id A520743D31 for ; Tue, 28 Sep 2004 01:50:45 +0000 (GMT) (envelope-from chenheng@huawei-3com.com) Received: from smtp.huawei-3com.com (localhost [127.0.0.1]) by smtp.huawei-3com.com (iPlanet Messaging Server 5.2 HotFix 1.16 (built May 14 2003)) with ESMTP id <0I4Q0064P96DXW@smtp.huawei-3com.com> for freebsd-questions@freebsd.org; Tue, 28 Sep 2004 09:23:01 +0800 (CST) Received: from c02042 ([10.153.21.48]) by smtp.huawei-3com.com (iPlanet Messaging Server 5.2 HotFix 1.16 (built May 14 2003)) with ESMTPA id <0I4Q00ANP96C3G@smtp.huawei-3com.com> for freebsd-questions@freebsd.org; Tue, 28 Sep 2004 09:23:01 +0800 (CST) Date: Tue, 28 Sep 2004 09:52:54 +0800 From: =?gb2312?B?s8K64w==?= To: freebsd-questions@freebsd.org Message-id: <006f01c4a4fd$df201780$3015990a@JFZX.COM> Organization: huawei-3com MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 X-Mailer: Microsoft Outlook Express 6.00.2800.1409 Content-type: text/plain; charset=gb2312 Content-transfer-encoding: 7BIT X-Priority: 3 X-MSMail-priority: Normal X-Mailman-Approved-At: Tue, 28 Sep 2004 15:11:52 +0000 Subject: FreeBSD 5.2: kernel routine for open, close, ioctl X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: =?gb2312?B?s8K64w==?= List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Sep 2004 01:50:47 -0000 Hi all, I want to open a "/home/user/info.txt" file from kernel module itself. Is there any interface to perfrom open, close and ioctl call ? I know that on linux filp_open calls exist. I'm looking for the same kind of interface.. Any pointers would be of great help. thanx and regards, chenheng