Skip to main content

parse_cache_size

Function parse_cache_size 

Source
fn parse_cache_size(size: &str) -> Option<u64>
Expand description

Parse a kernel cache size string (“32M”, “16384K”, plain bytes) into bytes. The kernel exposes cache sizes in the human-readable form with a K/M/G suffix; a parse failure yields None.