diff options
author | 1996-01-12 20:19:48 +0000 | |
---|---|---|
committer | 1996-01-12 20:19:48 +0000 | |
commit | 3dbef52beeb7bde2d27e4a3619eccbda5d02a92e (patch) | |
tree | 10b3ffc06a6970c4d97b563fa1dfb52c4f6b777c /sys/kern/init_main.c | |
parent | update to new cdio.h (diff) | |
download | wireguard-openbsd-3dbef52beeb7bde2d27e4a3619eccbda5d02a92e.tar.xz wireguard-openbsd-3dbef52beeb7bde2d27e4a3619eccbda5d02a92e.zip |
from netbsd;
New generic disk framework. Highlights:
New metrics handling. Metrics are now kept in the new `struct disk'.
Busy time is now stored as a timeval, and transfer count in bytes.
Storage for disklabels is now dynamically allocated, so that the size
of the disk structure is not machine-dependent.
Several new functions for attaching and detaching disks, and handling
metrics calculation.
Old-style instrumentation is still supported in drivers that did it
before. However, old-style instrumentation is being deprecated, and
will go away once the userland utilities are updated for the new
framework.
For usage and architectural details, see the forthcoming disk(9)
manual page.
Diffstat (limited to 'sys/kern/init_main.c')
-rw-r--r-- | sys/kern/init_main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index 4fb77e634f9..f439beda980 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -1,4 +1,4 @@ -/* $NetBSD: init_main.c,v 1.79 1995/12/09 04:07:41 mycroft Exp $ */ +/* $NetBSD: init_main.c,v 1.80 1996/01/07 22:03:47 thorpej Exp $ */ /* * Copyright (c) 1995 Christopher G. Demetriou. All rights reserved. @@ -144,6 +144,7 @@ main(framep) extern struct pdevinit pdevinit[]; extern void roundrobin __P((void *)); extern void schedcpu __P((void *)); + extern void disk_init __P((void)); /* * Initialize the current process pointer (curproc) before @@ -160,6 +161,7 @@ main(framep) vm_mem_init(); kmeminit(); + disk_init(); /* must come before autoconfiguration */ cpu_startup(); /* |