Zephyr API Documentation 4.0.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
Bootloader info interface

Bootloader info interface . More...

Functions

int blinfo_lookup (uint16_t key, char *val, int val_len_max)
 Returns bootinfo information.
 

Detailed Description

Bootloader info interface .

Since
3.5
Version
0.1.0

Function Documentation

◆ blinfo_lookup()

int blinfo_lookup ( uint16_t key,
char * val,
int val_len_max )

#include <zephyr/retention/blinfo.h>

Returns bootinfo information.

Parameters
keyThe information to return (for MCUboot: minor TLV).
valWhere the return information will be placed.
val_len_maxThe maximum size of the provided buffer.
Return values
>=0 If successful (contains length of read value)
-EOVERFLOWIf the data is too large to fit the supplied buffer.
-EIOIf the requested key was not found.
-errnoError code.