From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 17 02:34:15 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 2163E16A41F; Thu, 17 Nov 2005 02:34:15 +0000 (GMT) (envelope-from mayong@mail.com) Received: from ws1-4.us4.outblaze.com (ws1-4.us4.outblaze.com [205.158.62.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id D82F543D49; Thu, 17 Nov 2005 02:34:14 +0000 (GMT) (envelope-from mayong@mail.com) Received: by ws1-4.us4.outblaze.com (Postfix, from userid 1001) id 8A2C21642FE; Thu, 17 Nov 2005 02:34:14 +0000 (GMT) Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 From: "Yong Ma" To: "M. Warner Losh" , jhb@freebsd.org Date: Wed, 16 Nov 2005 21:34:14 -0500 Received: from [159.226.5.225] by ws1-4.us4.outblaze.com with http for mayong@mail.com; Wed, 16 Nov 2005 21:34:14 -0500 X-Originating-Ip: 159.226.5.225 X-Originating-Server: ws1-4.us4.outblaze.com Message-Id: <20051117023414.8A2C21642FE@ws1-4.us4.outblaze.com> Cc: freebsd-hackers@freebsd.org, freebsd-drivers@freebsd.org Subject: Re: How to make my new driver be configurable in the kernel configuration file? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Nov 2005 02:34:15 -0000 >=20 > Usually that's spelled '#include ' since it > is relative to one of the -I paths. In practice, however, it rarely > makes a difference. >=20 > Warner Yes,it works.I made it as a "standard".but I want to make it as a "optional= " so I can config it in the kernel configuration file(MYKERNEL) as "device= mydevice" to decide whether it will be load when system boots. It seemed not enough only add a line "dev/mydevice/mycevice.c optional= device" in sys/conf/files.i386 .There will be a syntax error when c= onfig MYKERNEL. Something else needed? Thanks a lot! Yong Ma --=20 ___________________________________________________ Play 100s of games for FREE! http://games.mail.com/