From e0fa2da95172a1b01ba5980d98e4220c02921a52 Mon Sep 17 00:00:00 2001 From: jruoho Date: Tue, 13 Apr 2010 07:32:31 +0000 Subject: [PATCH] As the cited setroot(9) was nonexistent, briefly document it here. --- distrib/sets/lists/comp/mi | 5 ++++- share/man/man9/Makefile | 3 ++- share/man/man9/cpu_rootconf.9 | 28 +++++++++++++++++++--------- 3 files changed, 25 insertions(+), 11 deletions(-) diff --git a/distrib/sets/lists/comp/mi b/distrib/sets/lists/comp/mi index e0f3995f1365..e161767bb565 100644 --- a/distrib/sets/lists/comp/mi +++ b/distrib/sets/lists/comp/mi @@ -1,4 +1,4 @@ -# $NetBSD: mi,v 1.1427 2010/04/13 05:40:12 jruoho Exp $ +# $NetBSD: mi,v 1.1428 2010/04/13 07:32:31 jruoho Exp $ # # Note: don't delete entries from here - mark them as "obsolete" instead. # @@ -9475,6 +9475,7 @@ ./usr/share/man/cat9/setdisklabel.0 comp-sys-catman .cat ./usr/share/man/cat9/setbit.0 comp-sys-catman .cat ./usr/share/man/cat9/setjmp.0 comp-sys-catman .cat +./usr/share/man/cat9/setroot.0 comp-sys-catman .cat ./usr/share/man/cat9/setrunqueue.0 comp-obsolete obsolete ./usr/share/man/cat9/shutdownhook_disestablish.0 comp-sys-catman .cat ./usr/share/man/cat9/shutdownhook_establish.0 comp-sys-catman .cat @@ -15120,6 +15121,7 @@ ./usr/share/man/html9/setdisklabel.html comp-sys-htmlman html ./usr/share/man/html9/setbit.html comp-sys-htmlman html ./usr/share/man/html9/setjmp.html comp-sys-htmlman html +./usr/share/man/html9/setroot.html comp-sys-htmlman html ./usr/share/man/html9/shutdownhook_disestablish.html comp-sys-htmlman html ./usr/share/man/html9/shutdownhook_establish.html comp-sys-htmlman html ./usr/share/man/html9/sigaction1.html comp-sys-htmlman html @@ -20964,6 +20966,7 @@ ./usr/share/man/man9/setdisklabel.9 comp-sys-man .man ./usr/share/man/man9/setbit.9 comp-sys-man .man ./usr/share/man/man9/setjmp.9 comp-sys-man .man +./usr/share/man/man9/setroot.9 comp-sys-man .man ./usr/share/man/man9/setrunqueue.9 comp-obsolete obsolete ./usr/share/man/man9/shutdownhook_disestablish.9 comp-sys-man .man ./usr/share/man/man9/shutdownhook_establish.9 comp-sys-man .man diff --git a/share/man/man9/Makefile b/share/man/man9/Makefile index 72e81d6378cc..e32397e0e00b 100644 --- a/share/man/man9/Makefile +++ b/share/man/man9/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.324 2010/04/13 05:40:12 jruoho Exp $ +# $NetBSD: Makefile,v 1.325 2010/04/13 07:32:31 jruoho Exp $ # Makefile for section 9 (kernel function and variable) manual pages. @@ -222,6 +222,7 @@ MLINKS+=copy.9 copyin.9 copy.9 copyout.9 copy.9 copystr.9 \ MLINKS+=cpu_dumpconf.9 cpu_dump.9 cpu_dumpconf.9 cpu_dumpsize.9 \ cpu_dumpconf.9 dumpsys.9 MLINKS+=cpu_lwp_fork.9 child_return.9 cpu_lwp_fork.9 proc_trampoline.9 +MLINKS+=cpu_rootconf.9 setroot.9 MLINKS+=cpu_swapout.9 cpu_swapin.9 MLINKS+=curproc.9 curcpu.9 curproc.9 curlwp.9 MLINKS+=delay.9 DELAY.9 diff --git a/share/man/man9/cpu_rootconf.9 b/share/man/man9/cpu_rootconf.9 index 531358b166f6..8bb5d3fb2514 100644 --- a/share/man/man9/cpu_rootconf.9 +++ b/share/man/man9/cpu_rootconf.9 @@ -1,4 +1,4 @@ -.\" $NetBSD: cpu_rootconf.9,v 1.5 2008/04/30 13:10:58 martin Exp $ +.\" $NetBSD: cpu_rootconf.9,v 1.6 2010/04/13 07:32:31 jruoho Exp $ .\" .\" Copyright (c) 2002 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -27,26 +27,36 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd May 24, 2002 +.Dd April 13, 2010 .Dt CPU_ROOTCONF 9 .Os .Sh NAME -.Nm cpu_rootconf -.Nd machine-dependent root file system setup +.Nm cpu_rootconf , +.Nm setroot +.Nd root file system setup .Sh SYNOPSIS .In sys/types.h .In sys/systm.h .Ft void .Fn cpu_rootconf "void" +.Ft void +.Fn setroot "device_t bootdv" "int bootpartition" .Sh DESCRIPTION +The .Fn cpu_rootconf -is the machine-dependent interface invoked during system bootstrap to +is a machine-dependent interface invoked during system bootstrap to determine the root file system device and initialize machine-dependent file system state. +.Pp +The .Fn cpu_rootconf -invokes the machine-independent function +function invokes the machine-independent .Fn setroot -to record the boot/root device and the boot partition information for -use in machine-independent code. +function to record the boot/root device +.Fa bootdv +and the boot partition information +.Fa bootpartition +for use in machine-independent code. .Sh SEE ALSO -.Xr setroot 9 +.Xr boot 8 , +.Xr boothowto 9