27typedef enum : uint16_t {
97 uint32_t file_workspace_bytes,
98 void* transaction_workspace,
99 uint32_t transaction_workspace_bytes,
101 uint32_t io_buffer_bytes);
181 const char* destination);
Architecture-neutral filesystem namespace, stream, and transaction ports.
ra8_err_t mdl_storage_txn_write(mdl_storage_txn_t *writer, const uint8_t *bytes, uint32_t length)
Append one complete caller chunk, tolerating bounded short writes.
ra8_err_t mdl_storage_txn_begin_new(mdl_storage_txn_t *writer, mdl_storage_t *storage, const char *destination)
Begin one streamed create-new publication without replacement.
ra8_err_t mdl_storage_txn_abort(mdl_storage_txn_t *writer)
Abort and clear one streamed transaction.
ra8_err_t mdl_storage_copy_atomic(mdl_storage_t *storage, const char *source, const char *destination)
Copy a regular file through a validated atomic transaction.
ra8_err_t mdl_storage_txn_commit(mdl_storage_txn_t *writer)
Independently validate and publish a completed streamed transaction.
ra8_err_t mdl_storage_init(mdl_storage_t *storage, const fw_fs_t *fs, void *file_workspace, uint32_t file_workspace_bytes, void *transaction_workspace, uint32_t transaction_workspace_bytes, uint8_t *io_buffer, uint32_t io_buffer_bytes)
Validate and retain one filesystem plus caller-owned workspaces.
mdl_storage_limit_t
Recommended portable streaming scratch extent.
@ k_mdl_storage_io_bytes
One bounded read/write chunk.
ra8_err_t mdl_storage_txn_begin(mdl_storage_txn_t *writer, mdl_storage_t *storage, const char *destination)
Begin one streamed create or truthful atomic replacement.
Error Code Definitions for ra8-firmware.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
One complete composition-root filesystem binding.
Caller-owned transaction; fields are private to the facade.
One non-reentrant downloader filesystem dependency bundle.
uint32_t transaction_workspace_bytes
Transaction workspace extent.
uint32_t file_workspace_bytes
File workspace extent.
void * transaction_workspace
Transaction backend state.
uint8_t * io_buffer
Caller-owned stream scratch.
const fw_fs_t * fs
Injected portable filesystem.
void * file_workspace
Open-file backend state.
uint32_t io_buffer_bytes
Stream scratch extent.
Caller-owned streaming publication transaction with running identity.
uint64_t hash
Running FNV-1a identity.
mdl_storage_t * storage
Exclusively borrowed storage binding.
fw_fs_transaction_t transaction
Active private filesystem stage.
uint64_t size_bytes
Exact bytes accepted into the stage.
uint32_t write_calls
Bounded backend write-call tally.