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

Caller-allocated block-device handle binding a backend to its context. More...

#include <ra8_io_blockdev.h>

Collaboration diagram for ra8_io_blockdev_t:

Data Fields

const ra8_io_blockdev_iface_tiface
 Bound backend vtable (private).
void * ctx
 Backend-private context (private).

Detailed Description

Caller-allocated block-device handle binding a backend to its context.

Zero-initialise (= {}) and pass to a backend _init() helper, which fills the vtable and context. Treat the fields as private; reach the device only through the ra8_io_blockdev_* functions below. The handle and the backend's context must out-live every call made through them.

Invariant
iface is non-NULL once a backend has been bound.
Since
0.1.0

Definition at line 174 of file ra8_io_blockdev.h.

Field Documentation

◆ ctx

◆ iface


The documentation for this struct was generated from the following file: