From 00bf30f920b337ccd9e1e41c3111a2ba80481921 Mon Sep 17 00:00:00 2001 From: dlg Date: Mon, 10 Jan 2022 10:54:54 +0000 Subject: [PATCH] add a bit more. --- share/man/man4/kstat.4 | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/share/man/man4/kstat.4 b/share/man/man4/kstat.4 index 9209ed9a451..5741afeb24c 100644 --- a/share/man/man4/kstat.4 +++ b/share/man/man4/kstat.4 @@ -1,4 +1,4 @@ -.\" $OpenBSD: kstat.4,v 1.4 2022/01/10 10:20:31 dlg Exp $ +.\" $OpenBSD: kstat.4,v 1.5 2022/01/10 10:54:54 dlg Exp $ .\" .\" Copyright (c) 2022 Jonathan Gray .\" @@ -87,6 +87,24 @@ This check can be disabled by setting the flag in .Va ks_rflags . .Pp +A kstat is identified by a 64bit number, or the combination of a +provider name, unit number, name, and unit number. +Upon the successful request of a kstat, the +.Nm +driver will update the +.Vt kstat_req +structure with current information. +.\" list the struct members taht get updated and what they mean? +.Pp +Unless +.Va ks_data +is +.Dv NULL , +the kstat subsystem will request an update of the statistics data +and copy up to +.Va ks_datalen +bytes of it to the specified memory. +.Pp The kstat .Xr ioctl 2 calls are as follows: -- 2.20.1