2 * Copyright (C) 2012-2020 all contributors <cmogstored-public@yhbt.net>
3 * License: GPL-3.0+ <https://www.gnu.org/licenses/gpl-3.0.txt>
7 #define MOG_IOUTIL_LEN (sizeof("1666.00"))
9 /* this is way larger than it needs to be... */
10 #define MOG_IOSTAT_DEVLEN (72)
17 struct mog_queue
*queue
;
18 char util
[MOG_IOUTIL_LEN
];
19 char dev
[MOG_IOSTAT_DEVLEN
];
22 void mog_iostat_init(struct mog_iostat
*);
24 mog_iostat_parse(struct mog_iostat
*, char *buf
, size_t len
);
25 void mog_iostat_commit(void);
26 void mog_iostat_line_done(struct mog_iostat
*);
27 void mog_iostat_queue_step(struct mog_fd
*);