Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Dec 1998 15:41:57 -0800
From:      Mike Smith <mike@smith.net.au>
To:        Eivind Eklund <eivind@FreeBSD.ORG>
Cc:        Doug Rabson <dfr@nlsystems.com>, Bruce Evans <bde@zeta.org.au>, dfr@FreeBSD.ORG, alpha@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-committers@FreeBSD.ORG
Subject:   Re: cvs commit: src/share/mk bsd.kern.mk src/sys/alpha/conf Makefile.alpha 
Message-ID:  <199812202341.PAA47553@dingo.cdrom.com>
In-Reply-To: Your message of "Sun, 20 Dec 1998 23:44:19 %2B0100." <19981220234419.A9903@follo.net> 

next in thread | previous in thread | raw e-mail | index | archive | help
> On Sun, Dec 20, 1998 at 11:16:35AM +0000, Doug Rabson wrote:
> > On Fri, 18 Dec 1998, Eivind Eklund wrote:
> > > Eivind, who would like a full re-org of the entire kernel source
> > > layout at some point.
> > 
> > Any ideas on a decent layout?

Let's qualify that and say "a decent layout that takes our current 
architectural tendancies into account"

> bus/				# Bus-specific code
> 	eisa/
> 		dev/		# Devices for this bus
> 			<types>	# Type specifiers for drivers

This isn't even learning from our current mistakes.  (cf. everything in 
sys/pci that frontends for stuff in sys/i386/isa)

> This is just a very quick attempt at a hierarchially based layout; I'm
> sure there are lots of possible improvements.

The current drive is to tear the kernel into modules wherever possible; 
ultimately the kernel core will remain, and everything else will be 
modules.  So:

boot				as current /sys/boot
	...
compile
	i386			not convinced of the requirement for
		...		arch subdirs here.
	alpha
		...
	modules
		...
conf				config metainformation
	...
kern				core 'kernel module'
	arch
		alpha
		i386
	vm			core vm primitives
		...
	net			core networking (since removing it
		...		from the kernel is almost impossible)
modules
	bus			bus handlers, arch independent where
		root		possible
		isa
		pci
		pccard
		cardbus
		scsi
		ppbus
		iic
		...
	device			device drivers, one directory per
		...		driver
	vfs			filesystems, perhaps organised as per
		...		Eivind's suggestion
	syscall			loadable syscalls
		...
	misc			"other stuff"
		...

> > (Any ideas on how to get enough people to agree on change?)
> 
> Not a clue.

Almost impossible, unless you can sell them on losing the CVS history.

-- 
\\  Sometimes you're ahead,       \\  Mike Smith
\\  sometimes you're behind.      \\  mike@smith.net.au
\\  The race is long, and in the  \\  msmith@freebsd.org
\\  end it's only with yourself.  \\  msmith@cdrom.com



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199812202341.PAA47553>