pub fn parse_zram_mm_stat(buf: &[u8], name: &str) -> Option<ZramDevice>Expand description
Parse one /sys/block/zram<N>/mm_stat line.
The columns are, in order:
orig_data_size compr_data_size mem_used_total mem_limit mem_used_max
same_pages pages_compacted huge_pages huge_pages_sinceAll in bytes except the page counts. Only the first three are needed, and the rest are read positionally after them, which is safe because the kernel only ever appends to this line.