ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
fw_if_fs_posix.h
Go to the documentation of this file.
1
24
25#pragma once
26
27#ifndef RA8_OFF_TARGET
28#error "port/posix is host-only and must never be compiled or linked into target firmware."
29#endif
30
31#ifdef __cplusplus
32extern "C" {
33#endif
34
35#include <stdint.h>
36
37#include "fw_if_fs.h"
38
40typedef struct {
41 const char* root_path;
44
53
60[[nodiscard]] ra8_err_t
62
65
66#ifdef __cplusplus
67}
68#endif
Architecture-neutral filesystem namespace, stream, and transaction ports.
ra8_err_t fw_fs_posix_deinit(fw_fs_posix_state_t *state)
Close the root descriptor; no bound operation is valid afterward.
ra8_err_t fw_fs_posix_init(fw_fs_t *out, fw_fs_posix_state_t *state, const fw_fs_posix_cfg_t *cfg)
Open/configure a root-confined POSIX binding.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
Definition ra8_err.h:546
POSIX composition-root settings.
const char * root_path
Existing host directory used as /.
bool removable_media
Truthful property of the selected root.
Caller-owned POSIX adapter state.
bool atomic_noreplace
Runtime-probed rename guarantee.
bool removable_media
Capability input.
bool initialized
Lifecycle guard.
uint32_t transaction_id
Per-binding stage-name counter.
int root_fd
Open descriptor, or -1 while inactive.
One complete composition-root filesystem binding.