cmogstored 1.8.1 - use default system stack size
[cmogstored.git] / iostat.h
blob20840dbec1f3113731c94ca1caba05a2eeb2019c
1 /*
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>
4 */
5 struct mog_queue;
6 struct mog_fd;
7 #define MOG_IOUTIL_LEN (sizeof("1666.00"))
9 /* this is way larger than it needs to be... */
10 #define MOG_IOSTAT_DEVLEN (72)
12 struct mog_iostat {
13 int cs;
14 bool ready;
15 uint8_t util_tip;
16 uint8_t dev_tip;
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 *);
23 enum mog_parser_state
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 *);