[][src]Function cache_size::cache_line_size

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

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

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.