summaryrefslogtreecommitdiff
path: root/sys/arch/landisk
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2020-07-06 04:32:26 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2020-07-06 04:32:26 +0000
commit825c6ff98ec37217cd5feac78bfa98fe92fe2120 (patch)
tree7cd5557ef6eb4d01c63110b387e4f1dd0ca4357f /sys/arch/landisk
parenta23b776753af9f09b5db785f1c0fb341939db224 (diff)
wire up kstat(4)
"looks right" deraadt@
Diffstat (limited to 'sys/arch/landisk')
-rw-r--r--sys/arch/landisk/landisk/conf.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/landisk/landisk/conf.c b/sys/arch/landisk/landisk/conf.c
index b4f236fd8cb..b23ef6f4b6b 100644
--- a/sys/arch/landisk/landisk/conf.c
+++ b/sys/arch/landisk/landisk/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.41 2020/01/23 02:40:21 dlg Exp $ */
+/* $OpenBSD: conf.c,v 1.42 2020/07/06 04:32:25 dlg Exp $ */
/*
* Copyright (c) 1994-1998 Mark Brinicombe.
@@ -73,6 +73,7 @@
#include "pty.h"
#include "tun.h"
#include "ksyms.h"
+#include "kstat.h"
/*
* Disk/Filesystem pseudo-devices
@@ -295,7 +296,7 @@ struct cdevsw cdevsw[] = {
cdev_notdef(), /* 48: reserved */
cdev_notdef(), /* 49: reserved */
cdev_notdef(), /* 50: reserved */
- cdev_notdef(), /* 51: reserved */
+ cdev_kstat_init(NKSTAT,kstat), /* 51: kernel statistics */
cdev_notdef(), /* 52: reserved */
cdev_notdef(), /* 53: reserved */
cdev_notdef(), /* 54: reserved */