From owner-freebsd-hackers Tue Dec 9 01:14:44 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id BAA16184 for hackers-outgoing; Tue, 9 Dec 1997 01:14:44 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from caladan.tdx.co.uk (caladan.tdx.co.uk [195.188.177.4]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id BAA16179 for ; Tue, 9 Dec 1997 01:14:39 -0800 (PST) (envelope-from kpielorz@tdx.co.uk) Received: from tdx.co.uk (lorca-tx.tdx.co.uk [195.188.177.242]) by caladan.tdx.co.uk (8.8.5/8.8.5) with ESMTP id IAA05654 for ; Tue, 9 Dec 1997 08:54:53 GMT Message-ID: <348D0D1A.8D2531FE@tdx.co.uk> Date: Tue, 09 Dec 1997 09:19:22 +0000 From: Karl Pielorz Organization: TDX X-Mailer: Mozilla 4.04 [en] (WinNT; I) MIME-Version: 1.0 To: hackers@freebsd.org Subject: Re: Writing Device drivers for 2.2.X etc' References: <199712090103.LAA07171@word.smith.net.au> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Mike Smith wrote: > > Editing conf.c would have forced you to think about major numbers. > Minor numbers have always been driver-specific. > Yes, I can see that... > > Have a look at /usr/share/examples/drivers/make_device_driver.sh. Note > that this defaults to major 20, which is for local testing. Once you're > reasonably happy with your driver (and if you decide to give it away) > we can arrange a new number for you... Ok, I'll give that a go... My /usr/share/examples/drivers directory is kinda empty though - which distribution is the script in? One final question - If I write this under 2.2.2 - is it going to compile on 2.2.5 without any trouble? Thanks for your time, Karl