summaryrefslogtreecommitdiffstats
path: root/lib/libdevstat/devstat.3
diff options
context:
space:
mode:
authorken <ken@FreeBSD.org>2001-08-18 05:46:59 +0000
committerken <ken@FreeBSD.org>2001-08-18 05:46:59 +0000
commitef96d4b7a9b4d75885e7773a2430560c72f9b2aa (patch)
tree048b1c2152f5670e9ca51f561c6bddb4e8181511 /lib/libdevstat/devstat.3
parent95b64737b7f4cb499936bd0af68d59f0de68fbdb (diff)
downloadFreeBSD-src-ef96d4b7a9b4d75885e7773a2430560c72f9b2aa.zip
FreeBSD-src-ef96d4b7a9b4d75885e7773a2430560c72f9b2aa.tar.gz
Implement compute_stats() in terms of devstat_compute_statistics(). This
gets rid of the duplicated code in compute_stats(). Add a new DSM_SKIP statistic type for devstat_compute_statistics() that causes the subsequent variable argument to be skipped. Thanks to Sergey Osokin for coding up my idea/code fragment. Submitted by: "Sergey A. Osokin" <osa@freebsd.org.ru>
Diffstat (limited to 'lib/libdevstat/devstat.3')
-rw-r--r--lib/libdevstat/devstat.312
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/libdevstat/devstat.3 b/lib/libdevstat/devstat.3
index 102d582..319b37e 100644
--- a/lib/libdevstat/devstat.3
+++ b/lib/libdevstat/devstat.3
@@ -762,6 +762,18 @@ and
.Va current .
As above, this is not the true number of milliseconds per transaction, but
rather the average rate of write transaction completion.
+.It DSM_SKIP
+type: N/A
+.Pp
+If you do not need a result from
+.Fn devstat_compute_statistics ,
+just put
+.Va DSM_SKIP
+as first (type) parameter and
+.Va NULL
+as second parameter.
+This can be useful in scenarios where the statistics to be calculated
+are determined at run time.
.El
.Pp
.Fn compute_stats
OpenPOWER on IntegriCloud