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

Backend-author interface for binding concrete filesystem ports. More...

#include <stdint.h>
#include "fw_if_fs.h"
Include dependency graph for fw_if_fs_backend.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  fw_fs_namespace_iface
 Namespace backend operations. More...
struct  fw_fs_stream_iface
 Open-file backend operations over caller-supplied state. More...
struct  fw_fs_transaction_iface
 Staged-publication backend operations over caller-supplied state. More...

Functions

ra8_err_t fw_fs_bind (fw_fs_t *out, const fw_fs_namespace_iface_t *namespace_iface, const fw_fs_stream_iface_t *stream_iface, const fw_fs_transaction_iface_t *transaction_iface, void *ctx, const fw_fs_caps_t *caps)
 Bind segregated vtables and one context into a complete facade.

Detailed Description

Backend-author interface for binding concrete filesystem ports.

Tag
[Ring 2 / Interface] {World: Any}

Applications do not construct these vtables. A concrete adapter exports one _init() function which passes immutable vtables, a caller-owned context, and truthful capabilities to fw_fs_bind.

Since
0.1.0

Definition in file fw_if_fs_backend.h.

Function Documentation

◆ fw_fs_bind()

ra8_err_t fw_fs_bind ( fw_fs_t * out,
const fw_fs_namespace_iface_t * namespace_iface,
const fw_fs_stream_iface_t * stream_iface,
const fw_fs_transaction_iface_t * transaction_iface,
void * ctx,
const fw_fs_caps_t * caps )
nodiscard