-# $OpenBSD: Makefile,v 1.815 2021/12/24 05:25:39 hastings Exp $
+# $OpenBSD: Makefile,v 1.816 2022/01/10 04:59:19 jsg Exp $
MAN= aac.4 abcrtc.4 abl.4 ac97.4 acphy.4 acrtc.4 \
acpi.4 acpiac.4 acpials.4 acpiasus.4 acpibat.4 \
ipmi.4 ips.4 ipsec.4 ipw.4 isa.4 isagpio.4 isapnp.4 islrtc.4 \
it.4 itherm.4 iwi.4 iwn.4 iwm.4 iwx.4 ix.4 ixgb.4 ixl.4 \
jmb.4 jme.4 jmphy.4 \
- kate.4 kcov.4 km.4 ksmn.4 ksyms.4 kubsan.4 kue.4 lc.4 lge.4 lii.4 \
+ kate.4 kcov.4 km.4 ksmn.4 kstat.4 ksyms.4 kubsan.4 kue.4 \
+ lc.4 lge.4 lii.4 \
lisa.4 lm.4 lmenv.4 lmn.4 lmtemp.4 lo.4 lpt.4 lxtphy.4 luphy.4 \
maestro.4 mainbus.4 malo.4 maxds.4 maxrtc.4 maxtmp.4 mbg.4 \
mcprtc.4 mcx.4 midi.4 mii.4 mfi.4 mfii.4 mfokrtc.4 \
--- /dev/null
+.\" $OpenBSD: kstat.4,v 1.1 2022/01/10 04:59:19 jsg Exp $
+.\"
+.\" Copyright (c) 2022 Jonathan Gray <jsg@openbsd.org>
+.\"
+.\" Permission to use, copy, modify, and distribute this software for any
+.\" purpose with or without fee is hereby granted, provided that the above
+.\" copyright notice and this permission notice appear in all copies.
+.\"
+.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+.\"
+.Dd $Mdocdate: January 10 2022 $
+.Dt KSTAT 4
+.Os
+.Sh NAME
+.Nm kstat
+.Nd kernel statistics
+.Sh SYNOPSIS
+.Cd "pseudo-device kstat"
+.Sh DESCRIPTION
+The
+.Pa /dev/kstat
+device exposes kernel statistics to userland.
+.Sh IOCTLS
+See
+.In sys/kstat.h .
+.Bl -tag -width Ds
+.It KSTATIOC_VERSION Fa "unsigned int"
+.It KSTATIOC_FIND_ID Fa "struct kstat_req"
+.It KSTATIOC_NFIND_ID Fa "struct kstat_req"
+.It KSTATIOC_FIND_PROVIDER Fa "struct kstat_req"
+.It KSTATIOC_NFIND_PROVIDER Fa "struct kstat_req"
+.It KSTATIOC_FIND_NAME Fa "struct kstat_req"
+.It KSTATIOC_NFIND_NAME Fa "struct kstat_req"
+.El
+.Sh FILES
+.Bl -tag -width Pa -compact
+.It Pa /dev/kstat
+.El
+.Sh SEE ALSO
+.\".Xr kstat 1 ,
+.Xr kstat_create 9 ,
+.Xr kstat_kv_init 9
+.Sh HISTORY
+The
+.Nm
+device appeared in
+.Ox 6.8 .