|
rlib
Convenience library for useful things
|
One level of a CPU's cache hierarchy. More...
#include <rlib/os/rsys.h>
Data Fields | |
| ruint | level |
| RSysCpuCacheType | type |
| rsize | size |
| rsize | linesize |
| rsize | ways |
| rsize | sets |
One level of a CPU's cache hierarchy.
Every field but level and type is 0 when the platform does not report it - Darwin, for instance, gives sizes and the line size but neither associativity nor set count.
| ruint RSysCpuCache::level |
1-based cache level (1 = L1).
| rsize RSysCpuCache::linesize |
Coherency line size in bytes.
| rsize RSysCpuCache::sets |
Number of sets.
| rsize RSysCpuCache::size |
Total capacity in bytes.
| RSysCpuCacheType RSysCpuCache::type |
What the level caches.
| rsize RSysCpuCache::ways |
Ways per set (associativity).