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

Caller-owned metadata for one physical erase block. More...

#include <ra8_ftl.h>

Data Fields

uint32_t erase_count
 Cumulative erases of this block (wear metric).
uint8_t state
 ra8_ftl_pstate_t lifecycle state (private).

Detailed Description

Caller-owned metadata for one physical erase block.

One entry per physical block of the underlying device. Zero-initialise the whole array (= {}): all-zero means every block is FREE with a zero erase count, which is the correct cold-start state. Treat the fields as private; the FTL maintains them.

Invariant
state is one of ra8_ftl_pstate_t.
erase_count is monotonically non-decreasing across the device lifetime.
Since
0.1.0

Definition at line 162 of file ra8_ftl.h.

Field Documentation

◆ erase_count

uint32_t ra8_ftl_pblock_t::erase_count

Cumulative erases of this block (wear metric).

Definition at line 163 of file ra8_ftl.h.

Referenced by internal_alloc_blank(), internal_decode_commit(), internal_encode(), internal_pick_free(), internal_reclaim_stale(), internal_reset_tables(), and ra8_ftl_wear_stats().

◆ state


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