K-FSW v1.2.1-59-gcaca356
KFSW: modular flight software on Zephyr, for small satellites
Loading...
Searching...
No Matches
Persistent event journal

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)
 

Description

Function Documentation

◆ kfsw_journal_flush()

int kfsw_journal_flush ( void  )

#include <journal.h>

Flush one bounded batch on the calling thread.

Never call from interrupt context.

◆ kfsw_journal_get()

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.

◆ kfsw_journal_get_stats()

void kfsw_journal_get_stats ( struct kfsw_journal_stats *  stats)

#include <journal.h>

Copy the current status.

◆ kfsw_journal_start()

int kfsw_journal_start ( void  )

#include <journal.h>

Initialize once and start the writer.

Failed storage initialization is retried.

◆ kfsw_journal_submit()

void kfsw_journal_submit ( const struct kfsw_event_record *  event)

#include <journal.h>

Queue a selected event without blocking.

Safe in interrupt context.