Zephyr API Documentation 4.0.0
A Scalable Open Source RTOS
|
Bootloader info interface . More...
Functions | |
int | blinfo_lookup (uint16_t key, char *val, int val_len_max) |
Returns bootinfo information. | |
Bootloader info interface .
int blinfo_lookup | ( | uint16_t | key, |
char * | val, | ||
int | val_len_max ) |
#include <zephyr/retention/blinfo.h>
Returns bootinfo information.
key | The information to return (for MCUboot: minor TLV). |
val | Where the return information will be placed. |
val_len_max | The maximum size of the provided buffer. |
>= | 0 If successful (contains length of read value) |
-EOVERFLOW | If the data is too large to fit the supplied buffer. |
-EIO | If the requested key was not found. |
-errno | Error code. |