From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 4 02:18:09 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2E6B237B401 for ; Fri, 4 Jul 2003 02:18:09 -0700 (PDT) Received: from sgate.jstvu.edu.cn (sgate.jstvu.edu.cn [210.28.216.2]) by mx1.FreeBSD.org (Postfix) with SMTP id 85B2B43FF2 for ; Fri, 4 Jul 2003 02:18:07 -0700 (PDT) (envelope-from zhuyi@jstvu.edu.cn) Received: (qmail 9074 invoked by uid 85); 4 Jul 2003 08:59:13 -0000 Received: from zhuyi@jstvu.edu.cn by sgate.jstvu.edu.cn by uid 0 with qmail-scanner-1.16 (uvscan: v4.2.40/v4272. spamassassin: 2.53. Clear:SA:0(-1.5/5.0):. Processed in 4.233046 secs); 04 Jul 2003 08:59:13 -0000 X-Spam-Status: No, hits=-1.5 required=5.0 Received: from unknown (HELO windows) (zhuyi@210.28.216.9) by 0 with SMTP; 4 Jul 2003 08:59:08 -0000 Date: Fri, 04 Jul 2003 17:18:06 +0800 From: zhuyi To: freebsd-hackers@freebsd.org Message-Id: <20030704171430.68CE.ZHUYI@jstvu.edu.cn> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable X-Mailer: Becky! ver. 2.00.11 Subject: how to call a syscall in a kernel module? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jul 2003 09:18:09 -0000 Dear all: How to call a syscall in a kernel module? In Linux, you can add two line into your source code. #define __KERNEL_SYSCALLS__ #include --=20 zhuyi