From: jsg Date: Mon, 10 Jan 2022 04:59:19 +0000 (+0000) Subject: initial kstat.4 X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=dd2bdb2c64c98533fdae22fd3ffb2432b2d11139;p=openbsd initial kstat.4 ok dlg@ --- diff --git a/share/man/man4/Makefile b/share/man/man4/Makefile index 28a1585d3dd..76ecf61b10f 100644 --- a/share/man/man4/Makefile +++ b/share/man/man4/Makefile @@ -1,4 +1,4 @@ -# $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 \ @@ -49,7 +49,8 @@ MAN= aac.4 abcrtc.4 abl.4 ac97.4 acphy.4 acrtc.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 \ diff --git a/share/man/man4/kstat.4 b/share/man/man4/kstat.4 new file mode 100644 index 00000000000..e25889e5f4a --- /dev/null +++ b/share/man/man4/kstat.4 @@ -0,0 +1,53 @@ +.\" $OpenBSD: kstat.4,v 1.1 2022/01/10 04:59:19 jsg Exp $ +.\" +.\" Copyright (c) 2022 Jonathan Gray +.\" +.\" 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 .