summaryrefslogtreecommitdiffstats
path: root/lib/libdevstat
diff options
context:
space:
mode:
authorken <ken@FreeBSD.org>1999-09-23 06:36:02 +0000
committerken <ken@FreeBSD.org>1999-09-23 06:36:02 +0000
commit4e2e77a0f2f3ce1f209821176b0547dc4be96ffe (patch)
treee54ffded9b05768d21a0b2a8640b60457059581b /lib/libdevstat
parent98b2b7e66c48ec858fd6192ec92ac06e58c75229 (diff)
downloadFreeBSD-src-4e2e77a0f2f3ce1f209821176b0547dc4be96ffe.zip
FreeBSD-src-4e2e77a0f2f3ce1f209821176b0547dc4be96ffe.tar.gz
Clarify what getdevs() expects as input.
Prompted by: grog
Diffstat (limited to 'lib/libdevstat')
-rw-r--r--lib/libdevstat/devstat.311
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/libdevstat/devstat.3 b/lib/libdevstat/devstat.3
index 4c3c9de..69a4d74 100644
--- a/lib/libdevstat/devstat.3
+++ b/lib/libdevstat/devstat.3
@@ -1,5 +1,5 @@
.\"
-.\" Copyright (c) 1998 Kenneth D. Merry.
+.\" Copyright (c) 1998, 1999 Kenneth D. Merry.
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
@@ -149,7 +149,14 @@ expects the
.Va statinfo
structure to be allocated, and it also expects the
.Va dinfo
-subelement to be allocated ahead of time. The
+subelement to be allocated and zeroed prior to the first invocation of
+.Fn getdevs .
+The
+.Va dinfo
+subelement is used to store state between calls, and should not be modified
+after the first call to
+.Fn getdevs .
+The
.Va dinfo
subelement contains the following elements:
.Bd -literal -offset indent
OpenPOWER on IntegriCloud