From owner-freebsd-hackers Tue Jan 21 12:19:39 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id MAA10096 for hackers-outgoing; Tue, 21 Jan 1997 12:19:39 -0800 (PST) Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id MAA10085; Tue, 21 Jan 1997 12:19:29 -0800 (PST) Received: from current1.whistle.com (current1.whistle.com [207.76.205.22]) by alpo.whistle.com (8.8.4/8.8.4) with SMTP id MAA19524; Tue, 21 Jan 1997 12:17:29 -0800 (PST) Message-ID: <32E523C2.167EB0E7@whistle.com> Date: Tue, 21 Jan 1997 12:14:58 -0800 From: Julian Elischer Organization: Whistle Communications X-Mailer: Mozilla 3.0Gold (X11; I; FreeBSD 2.2-CURRENT i386) MIME-Version: 1.0 To: Darren Reed CC: Julian Elischer , proff@suburbia.net, julian@FreeBSD.ORG, kuku@gilberto.physik.rwth-aachen.de, hackers@FreeBSD.ORG Subject: Re: FreeBSD 3.0-current port References: <199701211007.CAA11801@freefall.freebsd.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Darren Reed wrote: > > > hmmm, well, the code I got passed replace some VOP_* calls and the > cdevsw hackery with: > > dev = makedev(ipl_major, 0); > cdevsw_add(&dev, &iplcdevsw, NULL); > That'll work.... you can also ask cdevsw_add() to ASSIGN you a major number and tell you what it chose.. (in the cdevsw entry) (this of course is most useful in the DEVFS case) you ARE adding a DEVFS entry for it are you not? :) otherwise people running on DEVFS won't be able to use it .. (it's very simple to use..see any other driver.. (and there is a man page for the calls in man 9)