Subject: CVS commit: src/sys
To: None <source-changes@NetBSD.org>
From: Matthias Drochner <drochner@netbsd.org>
List: source-changes
Date: 03/05/2007 20:32:47
Module Name:	src
Committed By:	drochner
Date:		Mon Mar  5 20:32:46 UTC 2007

Modified Files:
	src/sys/kern: subr_autoconf.c
	src/sys/sys: device.h

Log Message:
Make the attach functions for real and pseudo devices share as much code
as possible. For that, split out a function which does the allocation
of a softc (without linking it into global structures) and a function
which inserts the device into the global alldevs lists and the per-driver
cd_devs.
There is a little semantic change involved: the pseudo-device code didn't
interpret FSTATE_STAR as such, for no good reason. This looks harmless;
I'll modify driver frontends as I find ways to test.
Get config_makeroom() out of the public namespace - that's clearly an
internal of autoconf which drivers can't be allowed to deal with.


To generate a diff of this commit:
cvs rdiff -r1.116 -r1.117 src/sys/kern/subr_autoconf.c
cvs rdiff -r1.93 -r1.94 src/sys/sys/device.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.