Date: Tue, 21 Jan 1997 21:07:03 +1100 (EDT) From: Darren Reed <avalon@coombs.anu.edu.au> To: julian@current1.whistle.com (Julian Elischer) Cc: avalon@coombs.anu.edu.au, proff@suburbia.net, julian@freebsd.org, kuku@gilberto.physik.rwth-aachen.de, hackers@freebsd.org Subject: Re: FreeBSD 3.0-current port Message-ID: <199701211007.CAA11801@freefall.freebsd.org> In-Reply-To: <Pine.BSF.3.95.970121004256.9650A-100000@current1.whistle.com> from "Julian Elischer" at Jan 21, 97 00:51:29 am
next in thread | previous in thread | raw e-mail | index | archive | help
In some mail from Julian Elischer, sie said:
[...]
> the major number is written into the cdevsw structure when it is
> assigned by the function, and it also has a spot for the driver name
> e.g. "fd".
>
> there is also a spot for a link to an associated bdevsw entry.
>
> sorry if that all looks too differnt to other OS's but I wanted
> to clean up a lot of cruft in teh kernel.. we have a way to go
> but this was the distance we could easily do without
> TOTALLY breaking too much..
> the functions are:
> cdevsw_add() and bdevsw_add()
> and they are in (I think) kern/kern_conf.c
>
> (they can probably do with some cleanups by now :)
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);
Darren
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199701211007.CAA11801>
