From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 30 11:45:34 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BC21916A476 for ; Wed, 30 Jan 2008 11:45:34 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.185]) by mx1.freebsd.org (Postfix) with ESMTP id 4750A13C43E for ; Wed, 30 Jan 2008 11:45:33 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: by fk-out-0910.google.com with SMTP id b27so170028fka.11 for ; Wed, 30 Jan 2008 03:45:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=4WnraV2kNH6wdmukMASpNZswEs9Z0wuBsSMzwceFmXA=; b=b3dKrgEHYhUr1UxYhfrggYsAaKPEQur5A17wdMBydwbvzLWvsnuAuo/JYaW36z/Ns4FRubt/nLPrdcckTvhSPFhG5mUYo1hBTs4okhNn0Ao3F2yhR6YgGVV2k0mQQAQ4B7GeWQw9WsMTufrEfZkOZygMu9aVWQ0ycYsubLmb26c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=wvJRZ8gazdvvjKOPKJ6IbnvAvN36r3TIUGZG1/shf3/o0QfAM1UTlVh0+yBIJUBtdwIIBfNghPov4unvlMA5tYEUXptpRutp1YViIlzZPzognEVToqGFpTjK6sPGgVxdvdOkORaHVt7mbMimZsPIU5Eh4yTkkt3vQSLvEwY1Eyc= Received: by 10.78.204.1 with SMTP id b1mr751148hug.73.1201691847979; Wed, 30 Jan 2008 03:17:27 -0800 (PST) Received: by 10.78.46.11 with HTTP; Wed, 30 Jan 2008 03:17:27 -0800 (PST) Message-ID: Date: Wed, 30 Jan 2008 14:17:27 +0300 From: pluknet To: "Pietro Cerutti" In-Reply-To: <479F75D9.4070301@gahr.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <479F75D9.4070301@gahr.ch> Cc: freebsd-hackers@freebsd.org Subject: Re: struct devstat's bytes[] meaning X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jan 2008 11:45:34 -0000 On 29/01/2008, Pietro Cerutti wrote: > Hi list, > > I'm trying to get device IO status (i.e. read and written bytes) by > using the devstat interface, and I wrote this small program (mostly > inspired by the gkrellm2 port freebsd.c system-dependent module). [snip] > > Now, I suppose that those two numbers represent the amount of IO > generated within some time slice, but I can't find any documentation on > it... > Did you look at devstat(3) ? I think there is all you need to know about devstat library. wbr, pluknet