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

Forward waypoint carried across one write's grow-walks. More...

Data Fields

uint32_t cluster
 Cluster the last walk reached.
uint32_t index
 Chain index of cluster.

Detailed Description

Forward waypoint carried across one write's grow-walks.

Without it every sector of a long write re-walked the chain from the head, which is O(K^2) FAT lookups over a K-cluster file – the same quadratic as the allocation scan and worth the same fix (#607). One write's offset only ever moves forward, so the waypoint is always at or behind the cluster being written.

Invariant
index is the chain index of cluster.
See also
priv_write_position()
Since
0.1.0

Definition at line 370 of file ra8_fs_fat_fileio.c.

Field Documentation

◆ cluster

uint32_t write_walk_t::cluster

Cluster the last walk reached.

Definition at line 371 of file ra8_fs_fat_fileio.c.

Referenced by internal_write_position().

◆ index

uint32_t write_walk_t::index

Chain index of cluster.

Definition at line 372 of file ra8_fs_fat_fileio.c.

Referenced by internal_write_position().


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