|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
Portable filesystem value types and caller-owned opaque handles. More...
Go to the source code of this file.
Data Structures | |
| struct | fw_fs_caps_t |
| Static properties and workspace requirements of one bound port. More... | |
| struct | fw_fs_datetime_t |
| Backend-neutral civil time with nanosecond precision. More... | |
| struct | fw_fs_timestamp_t |
| One portable timestamp and independent availability facts. More... | |
| struct | fw_fs_stat_t |
| Result of a portable metadata query. More... | |
| struct | fw_fs_dirent_t |
| One directory entry, valid only for the callback invocation. More... | |
| struct | fw_fs_dirent_value_t |
| Stable caller-owned value returned by fw_fs_dir_next. More... | |
| struct | fw_fs_space_t |
| Portable volume usage snapshot. More... | |
| struct | fw_fs_namespace_t |
| Independently injectable path/namespace facade. More... | |
| struct | fw_fs_stream_port_t |
| Independently injectable open-stream facade. More... | |
| struct | fw_fs_transaction_port_t |
| Independently injectable staged-transaction facade. More... | |
| struct | fw_fs_t |
| One complete composition-root filesystem binding. More... | |
| struct | fw_fs_file_t |
| Caller-owned open file; fields are private to the facade. More... | |
| struct | fw_fs_dir_t |
| Caller-owned open directory cursor; fields are private to the facade. More... | |
| struct | fw_fs_transaction_t |
| Caller-owned transaction; fields are private to the facade. More... | |
Typedefs | |
| typedef ra8_err_t(* | fw_fs_list_fn_t) (void *ctx, const fw_fs_dirent_t *entry, bool *out_continue) |
| Bounded list callback. | |
| typedef struct fw_fs_namespace_iface | fw_fs_namespace_iface_t |
| typedef struct fw_fs_stream_iface | fw_fs_stream_iface_t |
| typedef struct fw_fs_transaction_iface | fw_fs_transaction_iface_t |
| typedef ra8_err_t(* | fw_fs_validate_fn_t) (void *ctx, fw_fs_file_t *staged) |
| Validate staged bytes through a read-only generic file handle. | |
Portable filesystem value types and caller-owned opaque handles.
These types describe filesystem intent without naming POSIX, FAT, a block device, an MCU, or an RTOS. Concrete ports bind private vtables and opaque contexts into the small handles below. Backend-specific file and transaction state is supplied by the caller at open/begin time; no handle owns dynamically allocated memory.
Definition in file fw_if_fs_types.h.
| typedef ra8_err_t(* fw_fs_list_fn_t) (void *ctx, const fw_fs_dirent_t *entry, bool *out_continue) |
Bounded list callback.
| [in] | ctx | Caller cookie. |
| [in] | entry | Entry valid for this call only. |
| [in,out] | out_continue | Set false to stop delivering entries. |
Definition at line 182 of file fw_if_fs_types.h.
| typedef struct fw_fs_namespace_iface fw_fs_namespace_iface_t |
Definition at line 184 of file fw_if_fs_types.h.
| typedef struct fw_fs_stream_iface fw_fs_stream_iface_t |
Definition at line 185 of file fw_if_fs_types.h.
| typedef struct fw_fs_transaction_iface fw_fs_transaction_iface_t |
Definition at line 186 of file fw_if_fs_types.h.
| typedef ra8_err_t(* fw_fs_validate_fn_t) (void *ctx, fw_fs_file_t *staged) |
Validate staged bytes through a read-only generic file handle.
| [in] | ctx | Caller cookie. |
| [in] | staged | Open read-only view of the staged artifact. |
Definition at line 252 of file fw_if_fs_types.h.
| enum fw_fs_capability_t : uint32_t |
Capability bits returned in fw_fs_caps_t.flags.
Definition at line 61 of file fw_if_fs_types.h.
| enum fw_fs_limits_t : uint16_t |
Interface-wide hard bounds used before a backend is called.
| Enumerator | |
|---|---|
| k_fw_fs_path_cap | Largest portable path including its NUL. |
Definition at line 33 of file fw_if_fs_types.h.
| enum fw_fs_node_type_t : uint8_t |
Filesystem node kind reported by fw_fs_stat.
Definition at line 38 of file fw_if_fs_types.h.
| enum fw_fs_open_mode_t : uint8_t |
Open intent for fw_fs_open.
Definition at line 47 of file fw_if_fs_types.h.
| enum fw_fs_transaction_policy_t : uint8_t |
Destination policy for a staged transaction.
| Enumerator | |
|---|---|
| k_fw_fs_txn_create_new | Commit only when destination is absent. |
| k_fw_fs_txn_replace_atomic | Atomically replace an existing file. |
Definition at line 55 of file fw_if_fs_types.h.