CVS commit: src/sys

"Simon Burge" <[email protected]>
Newsgroups gmane.os.netbsd.devel.cvs
Message-ID <[email protected]>
Module Name:	src
Committed By:	simonb
Date:		Tue May 26 14:57:25 UTC 2026

Modified Files:
	src/sys/dev/dkwedge: dk.c
	src/sys/kern: kern_hook.c kern_subr.c
	src/sys/sys: systm.h

Log Message:
Add "rootspec" hooks.  These hooks add a generic mechanism for
devices to advertise extra root device choices.  Use these to
replace wedge-specific code in sys/kern/kern_subr.c .

XXX todo: rootspec configuraton can be unloaded after the root
filesystem is mounted, and rootspechook_establish() calls after
the root filesystem is mounted could then be a no-op.

Thanks riastradh@, mlelstv@ and chs@ for reviews and comments.


To generate a diff of this commit:
cvs rdiff -u -r1.174 -r1.175 src/sys/dev/dkwedge/dk.c
cvs rdiff -u -r1.16 -r1.17 src/sys/kern/kern_hook.c
cvs rdiff -u -r1.232 -r1.233 src/sys/kern/kern_subr.c
cvs rdiff -u -r1.307 -r1.308 src/sys/sys/systm.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.