From owner-freebsd-hackers Tue Jan 21 02:07:50 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id CAA11810 for hackers-outgoing; Tue, 21 Jan 1997 02:07:50 -0800 (PST) Received: from cheops.anu.edu.au (avalon@cheops.anu.edu.au [150.203.76.24]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id CAA11801; Tue, 21 Jan 1997 02:07:39 -0800 (PST) Message-Id: <199701211007.CAA11801@freefall.freebsd.org> Received: by cheops.anu.edu.au (1.37.109.16/16.2) id AA256091223; Tue, 21 Jan 1997 21:07:03 +1100 From: Darren Reed Subject: Re: FreeBSD 3.0-current port To: julian@current1.whistle.com (Julian Elischer) Date: Tue, 21 Jan 1997 21:07:03 +1100 (EDT) Cc: avalon@coombs.anu.edu.au, proff@suburbia.net, julian@freebsd.org, kuku@gilberto.physik.rwth-aachen.de, hackers@freebsd.org In-Reply-To: from "Julian Elischer" at Jan 21, 97 00:51:29 am X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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