Date: Tue, 21 Jan 1997 12:14:58 -0800 From: Julian Elischer <julian@whistle.com> To: Darren Reed <avalon@coombs.anu.edu.au> Cc: Julian Elischer <julian@current1.whistle.com>, proff@suburbia.net, julian@FreeBSD.ORG, kuku@gilberto.physik.rwth-aachen.de, hackers@FreeBSD.ORG Subject: Re: FreeBSD 3.0-current port Message-ID: <32E523C2.167EB0E7@whistle.com> References: <199701211007.CAA11801@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?32E523C2.167EB0E7>