|
RPV Event driven kernel
|
Kernel system events journal API extending kernel shell runtime with journal manipulation commands. More...
Functions | |
| void | _kernel_jentry (char const *fmt,...) |
| Appends a formatted entry to the kernel journal. | |
| bool | _kernel_jnxtentry (char *entry, const size_t max_len, size_t *const entry_len) |
| Retrieves the next journal entry. | |
Kernel system events journal API extending kernel shell runtime with journal manipulation commands.
| void _kernel_jentry | ( | char const * | fmt, |
| ... | |||
| ) |
Appends a formatted entry to the kernel journal.
| [in] | fmt | Format string. |
| [in] | ... | Variable arguments corresponding to format specifiers. |
Formats a journal entry according to implementation-defined formatting rules (printf-like) and appends it to the internal journal buffer or log storage.
The journal is implemented as a circular memory buffer
Entry size limits and truncation behavior are implementation-defined.
| bool _kernel_jnxtentry | ( | char * | entry, |
| const size_t | max_len, | ||
| size_t *const | entry_len | ||
| ) |
Retrieves the next journal entry.
| [out] | entry | Buffer receiving the journal entry string. |
| [in] | max_len | Maximum buffer length in bytes. |
| [out] | entry_len | Optional pointer receiving actual entry length. |
| true | An entry was retrieved successfully. |
| false | No more entries available. |
Retrieves the next available journal entry from the internal journal storage.
If the provided buffer is too small, the entry may be truncated according to implementation-defined rules.
Iteration is cursor-based.