From owner-freebsd-hackers Tue May 30 18:17:57 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by hub.freebsd.org (Postfix) with ESMTP id AFFAB37BDCC for ; Tue, 30 May 2000 18:17:52 -0700 (PDT) (envelope-from grog@wantadilla.lemis.com) Received: (from grog@localhost) by wantadilla.lemis.com (8.9.3/8.9.3) id KAA15995; Wed, 31 May 2000 10:47:26 +0930 (CST) (envelope-from grog) Date: Wed, 31 May 2000 10:47:26 +0930 From: Greg Lehey To: Alexander Gu Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: what is the steps in the programing of device driver in freebsd? Message-ID: <20000531104726.B15797@wantadilla.lemis.com> References: <393482F8.B75F4755@seu.edu.cn> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: <393482F8.B75F4755@seu.edu.cn> Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wednesday, 31 May 2000 at 11:11:52 +0800, Alexander Gu wrote: > hello! > recently,I read the kernel source code of freebsd,I want to write > device driver program,I want to use ioctl to control my device > how can I do ?what is the steps?:) The traditional way is to start with the source of some other driver for a similar device and bend it to your device. Greg -- Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message