From 4e2e77a0f2f3ce1f209821176b0547dc4be96ffe Mon Sep 17 00:00:00 2001 From: ken Date: Thu, 23 Sep 1999 06:36:02 +0000 Subject: Clarify what getdevs() expects as input. Prompted by: grog --- lib/libdevstat/devstat.3 | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'lib/libdevstat') 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 -- cgit v1.1