|
K-FSW v1.2.1-59-gcaca356
KFSW: modular flight software on Zephyr, for small satellites
|
Data Structures | |
| struct | kfsw_journal_record |
| struct | kfsw_journal_stats |
Functions | |
| int | kfsw_journal_start (void) |
| void | kfsw_journal_submit (const struct kfsw_event_record *event) |
| int | kfsw_journal_flush (void) |
| int | kfsw_journal_get (uint16_t age, struct kfsw_journal_record *record) |
| void | kfsw_journal_get_stats (struct kfsw_journal_stats *stats) |
| int kfsw_journal_flush | ( | void | ) |
#include <journal.h>
Flush one bounded batch on the calling thread.
Never call from interrupt context.
| int kfsw_journal_get | ( | uint16_t | age, |
| struct kfsw_journal_record * | record | ||
| ) |
#include <journal.h>
Read a committed record by age, newest first.
No records are consumed.
| void kfsw_journal_get_stats | ( | struct kfsw_journal_stats * | stats | ) |
#include <journal.h>
Copy the current status.
| int kfsw_journal_start | ( | void | ) |
#include <journal.h>
Initialize once and start the writer.
Failed storage initialization is retried.
| void kfsw_journal_submit | ( | const struct kfsw_event_record * | event | ) |
#include <journal.h>
Queue a selected event without blocking.
Safe in interrupt context.