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

One resolved directory entry: where it is, and what is in it. More...

#include <ra8_fs_fat_types_internal.h>

Collaboration diagram for dir_target_t:

Data Fields

dir_loc_t parent
 Directory the entry lives in.
uint64_t lba
 Sector holding the entry.
uint32_t off
 Byte offset within that sector.
uint8_t entry [k_ra8_fs_dir_entry_bytes]
 The entry as read from disk.

Detailed Description

One resolved directory entry: where it is, and what is in it.

unlink, rmdir and rename all have to answer the same three questions before they touch anything – which directory holds the entry, which slot it is, and what the entry says – and all three then need the parent again to sweep up the long-name chain. Passing them as one value stops each verb inventing its own out-parameter quartet and forgetting one of them.

Invariant
entry is the 32 bytes currently on disk at (lba, off).
See also
priv_dir_erase_chain()
Since
0.1.0

Definition at line 630 of file ra8_fs_fat_types_internal.h.

Field Documentation

◆ entry

uint8_t dir_target_t::entry[k_ra8_fs_dir_entry_bytes]

The entry as read from disk.

Definition at line 634 of file ra8_fs_fat_types_internal.h.

Referenced by internal_fat_rename(), internal_fat_rmdir(), internal_rmdir_locate(), and internal_unlink_locate().

◆ lba

uint64_t dir_target_t::lba

Sector holding the entry.

Definition at line 632 of file ra8_fs_fat_types_internal.h.

Referenced by internal_fat_rename(), internal_fat_rmdir(), internal_rmdir_locate(), and internal_unlink_locate().

◆ off

uint32_t dir_target_t::off

Byte offset within that sector.

Definition at line 633 of file ra8_fs_fat_types_internal.h.

Referenced by internal_fat_rename(), internal_fat_rmdir(), internal_rmdir_locate(), and internal_unlink_locate().

◆ parent

dir_loc_t dir_target_t::parent

Directory the entry lives in.

Definition at line 631 of file ra8_fs_fat_types_internal.h.

Referenced by internal_fat_rename(), internal_fat_rmdir(), internal_rmdir_locate(), and internal_unlink_locate().


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