|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
Private commit-stage seam for the transactional media coordinator. More...
Go to the source code of this file.
Functions | |
| ra8_err_t | ra8_c6link_mdl_transfer_commit_test (const ra8_mdl_transfer_config_t *config, const ra8_mdl_chunk_t *chunk, uint64_t bytes_stored, uint32_t chunks_received, ra8_mdl_transfer_result_t *result) |
| Run the terminal commit stage against a caller-supplied chunk. | |
Private commit-stage seam for the transactional media coordinator.
Exposes the terminal verify/validate/publish stage to focused host tests so its metadata guard can be driven with terminal shapes the wire validator rejects upstream. Production sequencing, the pull budget, and every cleanup path stay private to ra8_c6link_mdl_transfer.c.
Definition in file ra8_c6link_mdl_transfer_internal.h.
| ra8_err_t ra8_c6link_mdl_transfer_commit_test | ( | const ra8_mdl_transfer_config_t * | config, |
| const ra8_mdl_chunk_t * | chunk, | ||
| uint64_t | bytes_stored, | ||
| uint32_t | chunks_received, | ||
| ra8_mdl_transfer_result_t * | result ) |
Run the terminal commit stage against a caller-supplied chunk.
Forwards every argument unchanged to the module-private production commit helper with an active storage transaction, so a focused test drives the exact shipped digest-comparison, artifact-validation, and publication sequence rather than a copy of it.
| [in] | config | Complete transfer configuration supplying storage and hash. |
| [in] | chunk | Terminal chunk whose metadata the stage must verify. |
| [in] | bytes_stored | Durable byte count the injected digest describes. |
| [in] | chunks_received | Number of remote responses consumed. |
| [out] | result | Result written only after commit succeeds. |
| k_ra8_ok | Digest matched and storage committed atomically. |
| k_ra8_err_invalid_size | The digest is absent or the counts disagree. |
| k_ra8_err_checksum_mismatch | SHA-256 digests disagree. |
| k_ra8_fail | Hash finalisation or storage commit failed. |
config, chunk, and result are non-null and caller-owned. bytes_stored bytes. result with the committed identity. result unmodified by this stage. Definition at line 220 of file ra8_c6link_mdl_transfer.c.
References internal_mdl_transfer_commit().