94 if (lock ==
nullptr) {
Annotation-attribute framework macros for ra8-firmware.
@ k_ra8_err_invalid_arg
Invalid function argument.
@ k_ra8_ok
Success – operation completed with all postconditions satisfied.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
Minimal FAT12/FAT16/FAT32 filesystem adapter (read + write).
Cross-TU shared declarations for the FAT/exFAT ra8_fs adapter.
void priv_lock_release(void)
Drop the library lock taken by priv_lock_acquire.
ra8_err_t ra8_fs_set_lock(const ra8_fs_lock_t *lock)
Install (or remove) the lock taken around every public ra8_fs call.
static bool s_lock_installed
True once a complete binding has been installed.
void priv_lock_acquire(void)
Take the library lock, if the caller installed one.
static ra8_fs_lock_t s_lock
The installed lock binding; meaningful only when s_lock_installed.
Dependency-injection seam for mutual exclusion around the public API.
void(* release)(void *ctx)
Release the lock taken by the matching acquire call.
void(* acquire)(void *ctx)
Take the lock; must block until it is held.