rlib
Convenience library for useful things
Loading...
Searching...
No Matches
RSysCpuCache Struct Reference

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
 

Detailed Description

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.

Field Documentation

◆ level

ruint RSysCpuCache::level

1-based cache level (1 = L1).

◆ linesize

rsize RSysCpuCache::linesize

Coherency line size in bytes.

◆ sets

rsize RSysCpuCache::sets

Number of sets.

◆ size

rsize RSysCpuCache::size

Total capacity in bytes.

◆ type

RSysCpuCacheType RSysCpuCache::type

What the level caches.

◆ ways

rsize RSysCpuCache::ways

Ways per set (associativity).


The documentation for this struct was generated from the following file: