struct devstat's bytes[] meaning

pluknet pluknet at gmail.com
Wed Jan 30 03:45:34 PST 2008


On 29/01/2008, Pietro Cerutti <gahr at gahr.ch> 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


More information about the freebsd-hackers mailing list