diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2022-01-10 10:54:55 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2022-01-10 10:54:55 +0000 |
commit | ffb0b145d5ba9506eaec924f804a2c0857ebe791 (patch) | |
tree | 7416eecb6bde7956fa4ba27b9bdf06c4fbf6d070 /share | |
parent | 2995e5c60438da7c5cf25c25df285bfab8f4d3b5 (diff) |
add a bit more.
Diffstat (limited to 'share')
-rw-r--r-- | share/man/man4/kstat.4 | 20 |
1 files changed, 19 insertions, 1 deletions
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 <jsg@openbsd.org> .\" @@ -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: |