ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
cb_cache_t Struct Reference

The fixed-capacity frame cache a policy manages. More...

#include <cache_bench.h>

Collaboration diagram for cb_cache_t:

Data Fields

cb_frame_tframes
 capacity frame slots.
uint32_t capacity
 Number of frame slots (the RAM budget knob).
void * policy_data
 Policy-private state (rings, stacks, sketch).
void * policy_workspace
 Caller-provided policy-state storage.
size_t policy_workspace_bytes
 Bytes available at the storage.

Detailed Description

The fixed-capacity frame cache a policy manages.

The harness owns the frame array and the resident-set lookup; a policy only decides ordering: which frame to evict, and how to react to hits / inserts. Frame indices are stable for the run.

Definition at line 50 of file cache_bench.h.

Field Documentation

◆ capacity

uint32_t cb_cache_t::capacity

Number of frame slots (the RAM budget knob).

Definition at line 52 of file cache_bench.h.

Referenced by internal_clock_victim(), internal_fifo_victim(), internal_lru_init(), internal_rand_victim(), internal_slru_init(), and internal_srrip_victim().

◆ frames

◆ policy_data

◆ policy_workspace

void* cb_cache_t::policy_workspace

Caller-provided policy-state storage.

Definition at line 54 of file cache_bench.h.

Referenced by internal_clock_init(), internal_fifo_init(), internal_lru_init(), internal_rand_init(), internal_slru_init(), and internal_srrip_init().

◆ policy_workspace_bytes

size_t cb_cache_t::policy_workspace_bytes

Bytes available at the storage.

Definition at line 55 of file cache_bench.h.

Referenced by internal_lru_init(), and internal_slru_init().


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