Function cache_size::cache_line_size[][src]

pub fn cache_line_size(level: u8, ctype: CacheType) -> Option<usize>

Returns the line size in bytes of level cache with type ctype.

The only possibilities for this returning None are if the system does not support cache parameters, in which case get_cache_parameters() will fail, or if the selected cache level and/or type does not exist.

This is computed from coherency_line_size(), and if there are multiple caches available, it returns the size of the smallest cache.